Run a model by id
Changed onRuns any model in the catalog by its public id, with input passed through untyped — the same call the typed operations below make, minus the compile-time schema.
Reach for it when the model is not known ahead of time: a client generated before a model shipped can still run it, and an id read from GET /v3/models at runtime needs no regeneration. Prefer the typed operation whenever your client already has one — input here is validated against the same published schema (GET /v3/models/{model}), so a bad field is a 400 at submit rather than an error before the call.
Submits an asynchronous job and returns 202 with a job id. Fetch the result at GET /v3/jobs/{job_id} — each item in its outputs[] follows the OutputItem schema — or track progress via GET /v3/jobs/{job_id}/status / the SSE stream at GET /v3/jobs/{job_id}/stream.
Request
- Base URLhttps://api.hedra.com/v3
- Auth
- API key in header Authorization
- or HTTP bearer
Path parameters
The model's public id (GET /v3/models).
Headers
Caller-chosen key that makes retrying this submit safe. A repeat submit with the same key returns the original job's ack (with Idempotent-Replayed: true) instead of queueing and charging a second job. Keys are scoped to the calling user and workspace. Failed jobs release their keys; retrying after failure or deletion of the original job can create and charge a new job. The request is fingerprinted by model and input: reusing a key with a different request is a 409 ALREADY_EXISTS, and retrying while the original is still being accepted is a 409 ALREADY_IN_PROGRESS carrying Retry-After.
Request body
Response
Accepted. The job runs asynchronously; poll status_url / result_url from the ack.
Changes
- info
endpoint added
- info