AI API integration | Text, image, video and audio - Pure Tokens

Find API Key, Base URL and model ID setup instructions, with request examples for text, image, video, audio, decision, embedding and rerank models.

Choose a model and API

Select a model in the catalog, confirm its ID, capabilities and price, then read the request example for that model type.

Configure your API Key and Base URL

Create an API Key in the console. Set the Base URL, model ID and parameters according to the guide and the examples for each model type.

Image, video and audio tasks

Submit generation requests through supported endpoints. Poll asynchronous media tasks for results; see the audio examples for response formats and file handling.

curl 'https://api.puretokensx.com/v1/chat/completions' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"model":"MODEL_ID_FROM_CATALOG","messages":[{"role":"user","content":"Hello"}]}'

YOUR_API_KEY: use your own key. MODEL_ID_FROM_CATALOG: choose a text model supporting chat/completions from the current catalog. Image, video and audio protocols depend on the model; do not substitute this example for their contracts.

JSON: Model catalog / FAQ
Pure Tokens 让每种想法,找到合适的模型 A model for every idea
连接稍慢,准备好后会自动进入 Connection is slow. We'll open it when ready.
重新加载 Reload page