/v1/modelsList public models and prices. Authentication is optional; a key can extend the response with scopes available to it.
#GateYourWay public inference contracts. Upstream details and internal routes remain private.
/v1/modelsList public models and prices. Authentication is optional; a key can extend the response with scopes available to it.
#/v1/models/{model_id}One model by public ID.
#/v1/chat/completionsOpenAI-compatible chat, streaming, and function tools.
#/v1/responsesOpenAI Responses-compatible input for Codex CLI and compatible clients.
#/v1/messagesAnthropic Messages API with streaming, vision, and tool use.
#/v1/images/generationsOne image generation returned as b64_json.
/v1/cursor/modelsIsolated Cursor model list containing gyw-opus-5.
/v1/cursor/chat/completionsCursor bridge for Claude Opus 5 in Chat Completions format.
#/v1/cursor/responsesCursor bridge for Claude Opus 5 in Responses format.
#/v1/chat/completionsPrimary OpenAI-compatible endpoint for messages.
| Field | Type | Description |
|---|---|---|
model | string | Required public model ID. |
messages | array | Message history in OpenAI format. |
stream | boolean | Enables an SSE response. |
tools | array | Function JSON Schemas when supported by the model. |
{
"model": "gpt-5.6-luna",
"messages": [
{"role": "system", "content": "Be concise."},
{"role": "user", "content": "Explain SSE in one sentence."}
],
"stream": true
}{
"id": "chatcmpl-...",
"object": "chat.completion",
"model": "gpt-5.6-luna",
"choices": [{"index": 0, "message": {"role": "assistant", "content": "..."}}],
"usage": {
"prompt_tokens": 18,
"completion_tokens": 24,
"total_tokens": 42
}
}/v1/responsesResponses-compatible wire API for Codex CLI and clients that use input and response events.
{
"model": "gpt-5.6-luna",
"input": "Return the word OK.",
"stream": true
}/v1/messagesAnthropic-compatible Messages API. Requires x-api-key and anthropic-version.
{
"model": "claude-opus-5",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Return the word OK."}],
"stream": true
}The separate /v1/cursor base URL accepts only gyw-opus-5. Every other model ID is intentionally rejected.