os.getenv("TOKENSMIND_API_KEY")。Send Authorization: Bearer Tokensmind_API_KEY. Create keys at https://tokensmind.ai/token/add
Chat turns with role and content
Sampling temperature (0–2); higher = more random
Max tokens to generate; limit depends on the model
Nucleus sampling
Penalize repeated tokens
Encourage new topics
Stream partial results
Web search options for search-capable models only