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

  1. Create an API key (mgk_ prefix) at https://console.modelgo.ai. The full secret is shown once.
  2. Call GET /v1/models for the logical model names the key can use.
  3. 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:

http
Authorization: Bearer $MODELGO_API_KEY

Anthropic clients may also send x-api-key, and Gemini clients x-goog-api-key. See Authentication.

Text and model list

MethodPathNotes
GET/v1/modelsLogical models the current key can call
GET/v1/models/countCount models callable with this key
GET/v1/models/{model}/endpointsPublic protocols and endpoints for this model; use /v1/models/endpoints?model=... when its name contains /
POST/v1/responsesOpenAI Responses
POST/v1/chat/completionsOpenAI Chat Completions
POST/v1/completionsLegacy completions
POST/v1/messagesAnthropic Messages
POST/v1/messages/count_tokensEstimate input tokens for an Anthropic Messages request; not billed
POST/v1/systemoneTypeSafe 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:

Vectors / images / audio / rerank

MethodPathNotes
POST/v1/embeddings, /v1/embeddings/multimodalOpenAI Embeddings
POST/v1/modelgo/imagesModelGo Unified Image: text-to-image and reference-image generation; the images come back synchronously
POST/v1/images/generations, /v1/images/editsOpenAI Images
POST/v1/modelgo/audio/speechModelGo Unified Speech: text to speech; the response body is the audio
POST/v1/audio/speech, /v1/audio/transcriptions, /v1/audio/translationsOpenAI Audio
POST/minimax/v1/t2a_v2MiniMax audio inbound
POST/v1/text-to-speech/{voice_id}, plus /stream, /with-timestamps, /stream/with-timestampsElevenLabs Audio
GET/v1/text-to-speech/{voice_id}/stream-inputElevenLabs 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/realtimeRealtime speech over WebSocket (wss://api.modelgo.ai/api-ws/v1/realtime); see Realtime API

Video and async tasks

MethodPathNotes
POST / GET/v1/modelgo/videosModelGo 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}/contentDownload 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-keysPublic 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.