Skip to content
HomeModels
DocsText & chat

Responses

Submit input in the OpenAI Responses format to generate text or tool calls. Designed for applications and clients using the Responses API.

OpenAI compatibleStreaming supported
POST/v1/responses
Base URLhttps://api.linkinfra.ai

Authorization

Bearer Token
AuthorizationBearer <token>

Authenticate requests with your API key in the request header:

Authorization: Bearer sk-your-api-key

Need a key? Create one in the console

Request body

application/json
modelstringrequired

Model ID from the model catalog. Availability depends on your account group and configured channels.

inputstring | arrayrequired

Text input or structured input items.

instructionsstring

System instructions that guide model behavior.

streamboolean

Set to true to receive incremental Server-Sent Events. Defaults to false.

max_output_tokensinteger

Maximum number of output tokens.

previous_response_idstring

Link a previous response. Availability depends on the upstream channel.

Streaming uses named SSE events such as response.output_text.delta and response.completed. The event format differs from Chat Completions.

Response

application/json
200Successful response
outputarray<object>

Output items. Text message content contains output_text.

statusstring

Response status, such as completed.

usageobject

Token usage for this request. Check usage logs in the console for actual charges.

Request failed? Read the error handling guide