deCloud
MA CHAIN · 20260131
deCloud Docs

Protocols and endpoints

Chat protocols and image, video, audio, embedding and rerank endpoints.

On this page

Endpoint reference

All endpoints live under /v1 and require authentication. Match the endpoint to the model category.

Method and pathPurpose
POST /v1/chat/completionsOpenAI-compatible chat
POST /v1/messagesAnthropic Messages compatibility
POST /v1/messages/count_tokensInput token estimate, no charge
POST /v1/responsesResponses compatibility, stateless turns
GET /v1/modelsModels visible to this key
POST /v1/images/generationsImage generation
POST /v1/embeddingsText embeddings
POST /v1/rerankDocument reranking
POST /v1/audio/speechSpeech synthesis, audio response
POST /v1/audio/transcriptionsTranscription, multipart upload
POST /v1/videosSubmit an async video job; duration field
GET /v1/videos/{id}Poll job status
GET /v1/videos/{id}/contentDownload using the submitting key

Streaming and compatibility

Use stream: true for Chat Completions SSE; the gateway requests upstream usage. For completed streams with a report, read the usage chunk before the end. [DONE] is not JSON and some chunks have no choices. Missing upstream reports or interrupted streams may lack complete usage; check the console ledger.

A compatible endpoint is not a complete implementation of the vendor API. Messages and Responses are translated internally; see client guides for limits and model details for media parameters.

Protocols and endpoints · deCloud Docs