Skip to content

Artifacts

Durable outputs jobs can pass to each other. Artifacts are created from completed jobs; the physical store is behind a stable storage_uri.

POST /v1/artifacts

Promote a completed job output into a durable art_ object. Returns 201.

bash
curl -s -X POST https://api.skilleo.org/v1/artifacts \
  -H "Authorization: Bearer $SKILLEO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"job_id":"job_...","metadata":{"prompt":"a red cube"}}'
CodeWhen
NOT_FOUNDUnknown or unowned job
OUTPUT_NOT_READYJob still running
OUTPUT_UNAVAILABLEJob failed
OUTPUT_MISSINGJob output file missing
ARTIFACT_EXISTSArtifact already created for this job

Response data

FieldDescription
typeLogical type (image today)
mime_typeContent type
size_bytesStored object size
created_by_jobSource job id
storage_uriBackend-agnostic URI (skilleo://v1/artifacts/art_...)
metadataCaller-supplied JSON
downloadRelative URL for bytes

No filesystem paths are returned.

GET /v1/artifacts

List non-deleted artifacts for the account.

bash
curl -s https://api.skilleo.org/v1/artifacts \
  -H "Authorization: Bearer $SKILLEO_API_KEY"

GET /v1/artifacts/{id}

Fetch one artifact envelope.

bash
curl -s https://api.skilleo.org/v1/artifacts/art_abc123 \
  -H "Authorization: Bearer $SKILLEO_API_KEY"

GET /v1/artifacts/{id}/content

Download artifact bytes. Same ownership as metadata.

bash
curl -s -o cube.png https://api.skilleo.org/v1/artifacts/art_abc123/content \
  -H "Authorization: Bearer $SKILLEO_API_KEY"

DELETE /v1/artifacts/{id}

Delete stored content and mark the artifact deleted.

bash
curl -s -X DELETE https://api.skilleo.org/v1/artifacts/art_abc123 \
  -H "Authorization: Bearer $SKILLEO_API_KEY"

Example

python
job = client.jobs.create(type="image", input={"prompt": "cube"})
client.jobs.wait(job["id"])

art = client.artifacts.create(job_id=job["id"], metadata={"prompt": "cube"})
client.artifacts.save(art["id"], "cube.png")

Job output remains available at GET /v1/jobs/{id}/output. Artifacts are the durable exchange primitive for workflows.

Skilleo — /v1 at api.skilleo.org