Endpoint Address
Get an API Key
- Log in to https://t.ato2.nodesms.com.
- Go to the token management page and create a new token.
- Copy the generated Key (starts with
sk-).
Authentication
All requests must include the API Key in the request header:Quick Test
Model names in the documentation are examples only. For actual available models, call the Models endpoint (
GET /v1/models).Use in the SDK
https://t.ato2.nodesms.com (some clients require the full address with /v1).
Error Handling
When an API error occurs, it returns an OpenAI-compatible error structure:API List
Models
Models
GET /v1/modelsChat
ChatCompletions Format
POST /v1/chat/completionsResponses Format
POST /v1/responsesText Completions
POST /v1/completionsEmbeddings and Reranking
Embeddings
POST /v1/embeddingsRerank
POST /v1/rerankImages
Image Generation
POST /v1/images/generationsImage Editing
POST /v1/images/edits/Audio
Audio Speech
POST /v1/audio/speechAudio Transcription
POST /v1/audio/transcriptionsAudio Translation
POST /v1/audio/translationsVideo
Create Video Generation Task
POST /v1/video/generationsGet Video Generation Task Status
GET /v1/video/generations/{task_id}Moderation
Moderation
POST /v1/moderations