kriyam.aistudioAPI reference

The run envelope

The response every synchronous tool returns, around its own result.

The run envelope

All tools that return a run use the same response envelope. The envelope structure and field meanings are consistent across tools; only the result field varies based on the tool. Refer to each tool's page for the structure of its result.

FieldTypeDescription
iduuid

This run. Use it to read the run again.

tool_url_pathstring

The tool that ran, by its slug.

statusstring

completed or failed. A synchronous tool has already reached one by the time you get this.

resultobject | null

The tool's own answer — the one field whose shape differs per tool. Null on a failed run.

errorstring | null

Why the run failed, when it did.

paramsobject

The settings this run used, echoed back — a re-run repeats them.

creditsinteger

What this run was charged. A failed run is charged nothing.

latency_msinteger | null

How long the run took.

input_urlsobject

Download URLs for what you uploaded, keyed by field. Presigned and short-lived — read a run again for fresh ones.

input_filenamesobject

The filenames you uploaded, under the same keys.

output_urlsobject

Files the run produced, keyed by name — a masked image, a report. Empty for a tool whose answer is entirely in result. Presigned the same way.

output_filenamesobject

Those files' names, under the same keys.

created_atdate-time

When the run started, UTC.