Create a response
Changed onCreates an OpenAI-compatible response through Respan. Choose the OpenAI, Azure, Perplexity, or Bedrock example. The OpenAI and Perplexity examples use Respan-managed routing when the model is available on credits; provider credentials can also be stored in Settings > Providers or supplied in respan_params.credential_override. For Azure, replace YOUR_AZURE_DEPLOYMENT, YOUR_RESOURCE and PROVIDER_API_KEY with your Azure deployment and credentials. Bedrock Responses requires your own AWS Bedrock credentials configured in Respan (BYOK); Respan credits are not supported for this route. Successful responses include X-Respan-Log-Id and are logged with the provider model and cost.
Request
- Base URLhttps://api.respan.ai
- URLhttps://api.respan.ai/api/responses
- AuthHTTP bearer
Query parameters
Headers
Responses upstream. Each named API Explorer example prepopulates its matching value; keep the header paired with the selected example. Perplexity and Bedrock routing is header-only, case-insensitive, and whitespace-tolerant.
Request body
Response
Response object or event stream from the selected Responses upstream.
Changes
- breaking
request body became required
- breaking
the response property
/became nullable for the status - breaking
the response property
/became nullable for the status - breaking
the response property
/became nullable for the status - breaking
the response property
/became nullable for the status - breaking
the response property
/became nullable for the status - breaking
the response property
/became nullable for the status - info
api operation id
gateway_createResponseremoved and replaced withcreateResponse - info
api tag
Gatewayadded - info
api tag
gatewayremoved - info
the request optional property
///became write-only - info
added the new enum value
bedrockto theheaderrequest parameterX-Respan-Route-Provider - info
the
request property format was generalized fromdoubleto no format - info
the
/request property format was generalized fromdoubleto no format - info
removed
subschema #1subschema #2from the/response propertyoneOflist for the response status - info
removed
subschema #1subschema #2from the/response propertyoneOflist for the response status - info
removed
subschema #1subschema #2from the/response propertyoneOflist for the response status - info
removed
subschema #1subschema #2from the/response propertyoneOflist for the response status - info
removed
subschema #1subschema #2from the/response propertyoneOflist for the response status - info
removed
subschema #1subschema #2from the/response propertyoneOflist for the response status
- breaking
- breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status - info
added the non-success response with the status
- info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking