Skip to main content
Create an API key and make your first call.

Call Tokensmind API directly

::: tip Replace <Tokensmind_API_KEY> with your Tokensmind key. Mind the key’s expiry and quota limits. ::: For available model values, see the model hub and copy the model name into your request. ::: code-group
[Python]
[JavaScript]
[Curl]
::: Streaming: add "stream": true to the request body.

Use the OpenAI SDK

Replace <Tokensmind_API_KEY> with your Tokensmind key. For model names, use the model hub. ::: code-group
[Python]
[JavaScript]
::: For search-capable models, you can add:
Models: gpt-4o-search-preview, gpt-4o-mini-search-preview. ::: info Search models may not support temperature and some other fine-grained parameters. :::