Overview of the text series
Text series covers OpenAI-compatible, Messages, Responses, embeddings, voice, transcription, translation and model queries. It is suitable for chat applications, smart assistants, content generation, semantic retrieval and voice processing.
GuideOpenAI-compatible uses Base URL, request body and model names compatible with OpenAI SDK. Matrix text model matrix selects the access by protocol, API, model use and synchronous. POSTChat and Responses copy the examples Chat Comples, Responses and Messages. ChatChat Completions dialogue completion, message array and streaming output access. ResponsesResponses is used input, instractions and Responses format. MessagesMessages access Claude compatible message format. AudioEmbeddings and audio uses embeddings, text transjects, transcription and translation API. VectorText embeddingsBuild semantic search, similarity matching and knowledge-base retrieval.TTS Text transject Generate announcements, voiceovers and spoken readings.ASRTranscription and translation uploads audio files, returns text transcription or translates. Models ModelQuery confirms the current API Key available model and copys the model list request. . Clients Client Configuration Configure the Base URL, API key, model ID and common clients.ReferenceAPI ReferenceBrowse complete fields, request examples and response structures.
Route List
| Methodology | Path | Purpose |
|---|---|---|
POST | /v1/chat/completions | Dialogue completion, suitable for most chat clients. |
POST | /v1/responses | Responses format, suitable for multi-modular input and tool call style. |
POST | /v1/responses/compact | Long dialogue context compression. |
POST | /v1/messages | Messages format, suitable for Claude compatible client. |
POST | /v1/embeddings | Text embeddings, suitable for retrieval and clustering. |
POST | /v1/audio/speech | Text to voice. |
POST | /v1/audio/transcriptions | Audio transcription. |
POST | /v1/audio/translations | Audio translation. |
GET | /v1/models | Query the current API Key available model. |
GET | /v1/models/{modelid} | Query for individual model details. |
Basic Configuration
text
Base URL: https://moonnexai.com/v1
Authorization: Bearer <MOONNEXAI_API_KEY>Standard request
bash
curl https://moonnexai.com/v1/chat/completions \
-H "Authorization: Bearer <MOONNEXAI_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.6-terra",
"messages": [
{
"role": "user",
"content": "写一句简短的产品欢迎语。"
}
]
}'