Skip to main content
POST
Responses
Creates a model response using the Responses API request and response format. Like other inference endpoints, requests are served through the attested gateway and return an x-receipt-id header for verification.

Endpoint

Request Body

string
required
Model id, for example phala/qwen3.5-27b or another id returned by List Models.
string | array
required
Input prompt. This can be a string or an array of input items.
array
Tool definitions the model may call.
number
Sampling temperature.
number
Nucleus sampling.
object
Routing constraints for this request, applied together. zdr restricts routing to providers that do not retain content; aci_verified restricts it to an upstream verified inside the TEE; aci_session_ids pins it to specific attested channels.
If no provider satisfies the constraints the request fails before the prompt is sent, and failover retries stay inside the allowed set. Field reference: Chat Completions. See Attested Routing and Zero Data Retention.

Example

Response

Read assistant text from output[].content[].text on message items. Reasoning models may also return reasoning items.

Verification

Capture x-receipt-id from the HTTP response and verify it with Get Receipt. The receipt proves the response bytes and records whether the upstream provider was verified.

Chat Completions

Verify a Response