TokenMoo

Endpoints

Available API endpoints, request fields and response format.

All endpoints live under https://www.tokenmoo.com/v1 and follow the OpenAI API shape.

Endpoints

EndpointMethodDescription
/v1/chat/completionsPOSTChat and reasoning models
/v1/embeddingsPOSTText embeddings
/v1/images/generationsPOSTImage generation
/v1/audio/speechPOSTText to speech
/v1/audio/transcriptionsPOSTSpeech to text
/v1/modelsGETList models available to your account

Common request fields

FieldTypeDescription
modelstringModel name, e.g. gpt-4o-mini, claude-3-5-sonnet
messagesarrayConversation history; each item has role and content
streambooleanStream the response incrementally over SSE
temperaturenumberSampling randomness, 02
max_tokensintegerUpper bound on generated tokens
top_pnumberNucleus sampling threshold
stopstring | arraySequences that end the completion

Response format

Chat completions return a choices array plus a usage block:

{
  "id": "chatcmpl-abc123",
  "object": "chat.completion",
  "model": "gpt-4o-mini",
  "choices": [
    {
      "index": 0,
      "message": { "role": "assistant", "content": "Hello!" },
      "finish_reason": "stop"
    }
  ],
  "usage": { "prompt_tokens": 19, "completion_tokens": 9, "total_tokens": 28 }
}

finish_reason is stop for a normal completion, length when max_tokens was reached, and content_filter when the upstream model refused the request.

Listing models

curl https://www.tokenmoo.com/v1/models \
  -H "Authorization: Bearer sk-xxx"

Use this list to discover the exact model names enabled for your account; prices are shown in the Model Square page.

On this page