Artifacts
Get Artifact
Retrieve an artifact by session ID or execution ID.
GET
Retrieve the raw content of an artifact using either aDocumentation Index
Fetch the complete documentation index at: https://docs.vlm.run/llms.txt
Use this file to discover all available pages before exploring further.
session_id (for chat completions) or an execution_id (for agent executions), along with the object_id from the response. Artifacts are binary objects generated during agent interactions, such as images, videos, audio files, and documents.
For a comprehensive guide on working with artifacts, including usage patterns and examples, see the Artifacts Guide.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
object_id | string | Yes | Object ID for the artifact (format: <type>_<6-hex-chars>, e.g., img_a1b2c3) |
session_id | string | No | Session ID from chat completions (mutually exclusive with execution_id) |
execution_id | string | No | Execution ID from agent executions (mutually exclusive with session_id) |
Either
session_id or execution_id must be provided, but not both. Use session_id for artifacts from chat completions and execution_id for artifacts from agent executions.Object Reference Format
Object references follow the format:<type_prefix>_<6-digit-hex-string> (e.g., img_a1b2c3).
| Artifact Type | Prefix | Reference Type | Python Return Type |
|---|---|---|---|
| Image | img_ | ImageRef | PIL.Image.Image |
| Video | vid_ | VideoRef | Path (mp4) |
| Audio | aud_ | AudioRef | Path (mp3) |
| Document | doc_ | DocumentRef | Path (pdf) |
| Reconstruction | recon_ | ReconRef | Path (spz) |
| URL | url_ | UrlRef | Path (any of the above) |
| Array | arr_ | ArrayRef | np.ndarray |
Response
Returns the raw binary content of the artifact with the appropriate content type based on the artifact type.Get Artifact by Session ID
Usesession_id to retrieve artifacts from chat completion responses.
Get Artifact by Execution ID
Useexecution_id to retrieve artifacts from agent execution responses.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Object ID for the artifact
Session ID for the artifact
Execution ID for the artifact
Response
Successful Response