curl -X POST 'https://octopusx.ai/v1/chat/completions' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "qwen4-max",
"messages": [
{
"role": "user",
"content": "your prompt"
}
],
"max_completion_tokens": 4096,
"stream": false,
"thinking_budget": 1024
}'
# Result: choices[0].message.content (json)Replace <YOUR_API_KEY> with the API key generated on your token management page.
Authentication
Authorization: Bearer ${API_KEY}
Endpoint Path
POST
Supported Parameters
ParameterTypeRequiredDefaultDescription
textareaRequired—Prompt
select—1024Thinking Budget (Tokens)
Response extraction
choices[0].message.contentjson