Skip to content

Endpoint Matrix

Base URL:

text
https://api.rout.my/v1
EndpointMethodBody shapeOutputNotes
GET /modelsGETnoneOpenAI-style model listUse this first to copy exact model IDs.
POST /chat/completionsPOSTmodel, messages, optional stream, tools, vision contentChat completion or SSE streamBest for OpenAI-compatible chat clients.
POST /responsesPOSTmodel, input, optional tools/stream-like fieldsResponses-style object or streamUseful when an app expects the newer Responses shape.
POST /embeddingsPOSTmodel, input, optional encoding_formatEmbedding listFor search, RAG, clustering, and semantic matching.
POST /images/generationsPOSTmodel, prompt, optional n, size, quality, image_configdata[].url or data[].b64_jsonSingle-prompt image generation.
POST /video/generationsPOSTmodel, prompt, optional provider-neutral video fieldsVideo generation responseProvider capabilities differ by model.
GET https://api.rout.my/embed/image:{model}GETquery paramsRaw image bytesConvenient for embedding generated images in pages. This route is outside /v1.
POST /messagesPOSTAnthropic-style messages bodyAnthropic-compatible responseFor Anthropic-native clients.
POST /compatible/v1beta/models/{model}:generateContentPOSTGemini-style contentsGemini-compatible responseFor Gemini-compatible clients.

Compatibility Notes

  • rout.my forwards model-specific fields when the selected provider supports them.
  • Unknown fields can be ignored or rejected depending on endpoint family and provider behavior.
  • For browser tools, keep keys user-supplied. Do not hardcode a shared key into public frontend code.
  • For retries, prefer exponential backoff on 429, 500, 502, and 503.

API documentation for rout.my.