Send a JSON request to POST /v1/responses with Authorization: Bearer YOUR_API_KEY.

Parameters

ParameterRequiredMeaning
modelYesExact currently available model ID.
inputNoText or supported multimodal input.
instructionsNoSystem-level instructions controlling the model’s role or behavior.
previous_response_idNoPrevious response ID, only where the selected model and route support continuation. Context billing also depends on that route.
truncationNoTruncation policy: auto or disabled, where supported.
Responses compatibility does not guarantee that every model supports every tool, reasoning setting, or continuation feature. Check Model Square, then test the exact capability your application needs. For the Codex client, see Codex setup. For message-based clients, see Chat Completions.

Newer Claude models ignore sampling parameters

When you call the Claude Sonnet 5 family, Claude Opus 5 family, Claude Opus 4.7, Claude Opus 4.8, Claude Haiku 5.5 and Claude Fable 5 family through this endpoint, temperature and top_p have no effect: Infistar removes them before forwarding the request, and the request succeeds without an error. These models do not support custom sampling parameters; describe the style you want in the prompt instead. Through Claude Messages (POST /v1/messages), Infistar forwards these parameters unchanged; they are still not guaranteed to take effect, and some lines reject the request, so leave them out.