List_models
/v1/modelsAuthorization
bearerAuth In: header
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/models"{ "data": [ { "can_reason": true, "context_window": 0, "created": 0, "default_max_tokens": 0, "default_reasoning_effort": "string", "deprecated": true, "fixed_reasoning_effort": "string", "id": "gpt-5.6", "object": "model", "owned_by": "openai", "pricing": { "cache_read_per_mtok": 0.3, "cache_write_per_mtok": 3.75, "currency": "USD", "input_includes_cache_read": true, "input_per_mtok": 3, "long_context_input_multiplier": 0, "long_context_output_multiplier": 0, "long_context_threshold_tokens": 0, "output_per_mtok": 15 }, "reasoning_levels": [ "string" ], "supported_speeds": [ "standard" ], "supports_attachments": true } ], "object": "list"}{ "error": { "code": "string", "message": "model not supported: foo", "request_id": "string", "service_id": "string", "type": "invalid_request_error" }}{ "error": { "code": "string", "message": "model not supported: foo", "request_id": "string", "service_id": "string", "type": "invalid_request_error" }}{ "error": { "code": "string", "message": "model not supported: foo", "request_id": "string", "service_id": "string", "type": "invalid_request_error" }}{ "error": { "code": "string", "message": "model not supported: foo", "request_id": "string", "service_id": "string", "type": "invalid_request_error" }}AI SDK UI Message Stream chat (streaming-only) POST
Vercel AI SDK–native chat endpoint, parallel to `/v1/chat/completions`. Accepts a `UIMessage[]` body and streams the AI SDK **UI Message Stream** protocol (typed `data: {"type":…}` chunks under `x-vercel-ai-ui-message-stream: v1`, terminated by `data: [DONE]`). Point `useChat` / `DefaultChatTransport` at it. Streaming-only: `stream: false` returns 400. Top-level fields (`model`, `reasoning_effort`, `tools`, `tool_choice`, `stop`, `temperature`, `top_p`, `max_tokens`, `stream_options`) are identical to `/v1/chat/completions`; only `messages` takes the AI SDK shape. **Client-side tools only** in v1 — the gateway emits `tool-input-*` (the model's call); clients execute tools and replay results as `tool-<name>` parts with `state: "output-available"`. Reasoning replays via `reasoning` parts; `providerMetadata` round-trips the replay payload. See `docs/llm-gateway/AISDK.md` for the chunk union and multi-turn replay contract.
Overview
Next Page