Create Response
Create an LLM response.
Supports both streaming and non-streaming modes via the stream parameter.
Authentication
Request
Model ID in format ‘provider/model-name’. Optional if a routing policy is configured.
Embedded Routing: the Customer id to scope this request to, as a Merge UUID (the id returned when the customer was created, not your origin_id). Applies that customer’s routing policy, provider keys, budget, and usage attribution. A non-UUID value returns 422; a UUID that matches no customer returns 404 (customer_not_found). Requires embedded routing enabled for your organization.
Embedded Routing: route this request with a specific customer routing policy instead of the customer’s default. Requires customer.
Tool choice policy: ‘auto’, ‘none’, ‘required’, or {‘type’: ‘function’, ‘function’: {‘name’: ’…’}}
Optional project ID (UUID) to associate with this request
Restrict routing to a specific vendor (hosting platform)
Processing tier. ‘flex’ = discounted best-effort (slower, may be throttled); ‘priority’ = premium low-latency (not currently priced on any route, so it fails closed). Omit or ‘standard’ for normal processing. Allowed only on routes that price the requested tier, otherwise the request fails closed with 400.
If the provider throttles the requested tier (429/503), retry once at the standard tier, billed at standard rates. The response service_tier shows the tier that actually served.
Response
The model that generated the response, in ‘provider/model-name’ format
Routing metadata (only present when include_routing_metadata=true)