Create a response
Starts a Responses API task in the OpenAI style. You get back 202 when you pass background=true; otherwise the call returns 200 once the work finishes.
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.
How reasoning is returned to you. true (the default) is the stateful contract: your SDK will reference earlier reasoning by id, which Valar cannot resolve, so thinking does not survive a turn. Set false for an agent loop - reasoning then comes back with encrypted_content, the form SDKs replay, and Valar carries it to the model on your next request. This field does not control retention: Valar stores the response either way so GET /responses/{id} works.
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 in_progress, completed, incomplete, failed, 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