Create a response
Creates an OpenAI Responses API task. Returns 202 when background=true, otherwise returns 200 after completion.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Lets you retry safely. Valar records a reservation under the combination of organization, API key, and Idempotency-Key, so sending the same value again hands back the stored response rather than running inference a second time. Values can be up to 255 characters. See Idempotent Requests for the complete rules.
255Body
Accepts text, and image input (input_image) when you target a multimodal model. Valar does not yet accept audio, files, or item references.
1x >= 10 <= x <= 20 <= x <= 1An optional hint Valar uses to keep prompt-prefix caches local. Requests sharing a key are steered toward the same place so you hit the cache more often.
Must be true; no other value is accepted.
true disabled Streaming is not available on this endpoint yet.
false 256Optional string-valued metadata. Use completion_window to influence scheduling, and completion_webhook together with webhook_token to wire up a webhook that fires on completion.
Response
The response finished and is returned to you right away.
response pending, running, failed, completed, cancelled Accepts text, and image input (input_image) when you target a multimodal model. Valar does not yet accept audio, files, or item references.
1