Guide

API endpoint and capability matrix

Preview guide

Paste into an AI assistant to help with integration. Documentation and examples only; no real credentials.

Preview guide

API endpoint and capability matrix

Direct answerConfirm the exact model and enabled endpoint in the marketplace first, then select a protocol here. A registered route only means the gateway recognizes it, not that every model or channel supports it.

Updated · Reviewed

Beginner: path, model, and channel are separate

A path selects a request contract, a model ID selects a capability, and a channel selects the upstream destination. All three must match. Start in the model marketplace, find the exact ID and its enabled endpoints, then choose a route below. A provider offering image models does not mean every image model works through a chat endpoint.

CapabilityMain gateway entryTransport and result
Model discoveryGET /v1/modelsJSON list for the current token
TextPOST /v1/chat/completions, POST /v1/responsesJSON or SSE
ClaudePOST /v1/messagesJSON or Claude SSE
GeminiPOST /v1beta/models/{model}:generateContentJSON; streaming differs
RetrievalPOST /v1/embeddings, POST /v1/rerankSynchronous JSON
ImagesPOST /v1/images/generations, POST /v1/images/editsURL or Base64
AudioPOST /v1/audio/speech, transcriptions, translationsJSON, multipart, or binary
VideoPOST /v1/videos, POST /v1/video/generationsCreate and poll a task
RealtimeGET /v1/realtimeWebSocket, not SSE
Generic asyncPOST /async/*, GET /get-async?id=.../async retired (410 after authentication), /get-async removed (404); use model task protocols

Minimal discovery request

Use the same site token planned for production. Presence in this response still does not prove support on every endpoint, so follow it with one inexpensive contract request.

curl "$BASE_URL/v1/models"   -H "Authorization: Bearer $API_KEY"

Registered but unsupported

/v1/files, /v1/images/variations, and legacy fine-tunes routes currently return not implemented. Registration provides a deterministic error; it is not a capability promise. Documentation must distinguish an HTTP route, an upstream feature, and a gateway channel adaptation.

Intermediate verification

Record path, exact model, Request-ID, HTTP status, response object type, and usage. For 404, check spelling, token visibility, and endpoint adaptation. For 400, validate the schema. For 401 or 403, inspect the site token. For 429, distinguish request rate, token throughput, quota, and balance.

Expert contract

Maintain an allowlist rather than concatenating arbitrary paths. For every capability, record method, content type, sync or async behavior, streaming, terminal states, body limits, result retention, retryable errors, and billing unit. Run a contract test against the real model whenever a channel or protocol changes; replacing only the base URL is never sufficient.

MiniMax M3 video input

POST /v1/media/video uploads MP4/MOV/AVI/MKV (up to 50,000,000 bytes) and returns a public URL for M3 video understanding. POST /v1/media/video/delete deletes the uploaded object using its receipt. Site-token authentication and configured staging storage are required. See files and media for examples. These extensions do not enable /v1/files.

Use cases

  • Choose text, media, and retrieval routes
  • Separate implemented, unsupported, and channel-specific behavior

API protocols

  • /v1/models
  • /v1/chat/completions
  • /v1/responses
  • /v1/messages
  • /v1/embeddings
  • /v1/rerank
  • /v1/images/generations
  • /v1/audio/speech
  • /v1/videos
  • /v1/videos/{video_id}/remix
  • /v2/video_generation
  • /v2/video_regeneration
  • /v2/h3_context_ir
  • /v2/query/video_generation/{task_id}
  • /v1/media/video
  • /v1/media/video/delete

FAQ

Can I call a path just because it exists?

No. The model must be visible to the token, a channel must be enabled, and that channel must adapt the endpoint. The marketplace owns live availability and pricing.

Why do capability pages not repeat provider-wide endpoints?

Text, image, video, audio, and retrieval capabilities can use different protocols. Broadcasting a provider route would mislabel media models as chat-compatible.

Is /v1/files supported?

No. It currently returns not implemented. Supply files through the target endpoint using a supported URL, Base64, data URL, or multipart form.

Official sources

  1. OpenAI API Reference Official
  2. Claude Messages API Official
  3. Gemini API Reference Official