ModelGo API Endpoints & Protocol Reference
This page lists the public model-calling HTTP APIs. The gateway address is https://api.modelgo.ai.
Before you call
- Create an API key (
mgk_prefix) athttps://console.modelgo.ai. The full secret is shown once. - Call
GET /v1/modelsfor the logical model names the key can use. - Each model is offered on only some endpoints, as shown in the Model Catalog or on its model page; calling an endpoint the model is not offered on returns HTTP 400
model_protocol_not_offered.
Every endpoint authenticates with the same API key:
Authorization: Bearer $MODELGO_API_KEYAnthropic clients may also send x-api-key, and Gemini clients x-goog-api-key. See Authentication.
Text and model list
| Method | Path | Notes |
|---|---|---|
GET | /v1/models | Logical models the current key can call |
GET | /v1/models/count | Count models callable with this key |
GET | /v1/models/{model}/endpoints | Public protocols and endpoints for this model; use /v1/models/endpoints?model=... when its name contains / |
POST | /v1/responses | OpenAI Responses |
POST | /v1/chat/completions | OpenAI Chat Completions |
POST | /v1/completions | Legacy completions |
POST | /v1/messages | Anthropic Messages |
POST | /v1/messages/count_tokens | Estimate input tokens for an Anthropic Messages request; not billed |
POST | /v1/systemone | TypeSafe System One structured judgments |
The three text entrypoints share the same API key and logical model names; they differ in body shape and stream events:
- New projects: start with OpenAI Responses.
- Existing OpenAI SDK or chat-completions code: stay on OpenAI Chat Completions and only swap the base URL and API key.
- Claude SDK, Claude Code, and other Anthropic-native clients: use Anthropic Messages; the base URL has no
/v1. - Legacy call chains that still send
prompt: legacy completions.
Vectors / images / audio / rerank
| Method | Path | Notes |
|---|---|---|
POST | /v1/embeddings, /v1/embeddings/multimodal | OpenAI Embeddings |
POST | /v1/modelgo/images | ModelGo Unified Image: text-to-image and reference-image generation; the images come back synchronously |
POST | /v1/images/generations, /v1/images/edits | OpenAI Images |
POST | /v1/modelgo/audio/speech | ModelGo Unified Speech: text to speech; the response body is the audio |
POST | /v1/audio/speech, /v1/audio/transcriptions, /v1/audio/translations | OpenAI Audio |
POST | /minimax/v1/t2a_v2 | MiniMax audio inbound |
POST | /v1/text-to-speech/{voice_id}, plus /stream, /with-timestamps, /stream/with-timestamps | ElevenLabs Audio |
GET | /v1/text-to-speech/{voice_id}/stream-input | ElevenLabs input-streaming WebSocket (wss://api.modelgo.ai/v1/text-to-speech/{voice_id}/stream-input); see ElevenLabs Audio |
POST | /v1/rerank (alias /v1/reranks) | OpenAI Rerank |
GET | /api-ws/v1/realtime | Realtime speech over WebSocket (wss://api.modelgo.ai/api-ws/v1/realtime); see Realtime API |
Video and async tasks
| Method | Path | Notes |
|---|---|---|
POST / GET | /v1/modelgo/videos | ModelGo Unified Video: create a task; GET with ?idempotency_key= finds the task a create produced |
POST / GET / DELETE | /v1/video/generations, /v1/videos/{task_id} | OpenAI Video |
GET | /v1/videos/{task_id}/content | Download the output (no auth: the link itself is the credential, so do not share it publicly) |
POST / GET / DELETE | /v1/content_generation/tasks, /ark/api/v3/contents/generations/tasks and .../{task_id} | Seedance |
POST / GET / DELETE | /api/v3/contents/generations/tasks, /v1/contents/generations/tasks and .../{task_id} | Same, official Ark SDK spellings (base_url of …/api/v3 or …/v1) |
POST / GET / DELETE | /minimax/v2/video_generation and .../{task_id} | MiniMax video inbound |
GET | /v1/webhooks/signing-keys | Public keys for verifying webhooks (no auth) |
Cancelling (DELETE) depends on the upstream; without upstream support it returns provider_unsupported. Tasks created on the unified API cannot be cancelled. Vendor protocol endpoints such as Wan, Kling, Gemini image, Qwen image and the native Seedream API are on the corresponding model pages.
Rate limits and retries
429 / 503 can be retried with backoff; send an Idempotency-Key when retrying a non-streaming request to avoid double billing; the request body limit is 10 MiB. Error shapes, error categories and failure billing are on Errors & Rate Limits.