Authorization: Bearer ********************{
"model": "claude-sonnet-4-6",
"messages": [
{
"role": "user",
"content": "hi"
}
],
"max_tokens": 500
}curl --location 'https://www.aiide.com/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "claude-sonnet-4-6",
"messages": [
{
"role": "user",
"content": "hi"
}
],
"max_tokens": 500
}'{
"id": "msg_01HfHqu8JQtGyto1Upe9mBT7",
"model": "claude-sonnet-4-20250514",
"object": "chat.completion",
"created": 1770016399,
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello"
},
"finish_reason": "length"
}
],
"usage": {
"prompt_tokens": 22,
"completion_tokens": 1,
"total_tokens": 23,
"prompt_tokens_details": {
"cached_tokens": 0,
"text_tokens": 0,
"audio_tokens": 0,
"image_tokens": 0
},
"completion_tokens_details": {
"text_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0
},
"input_tokens": 0,
"output_tokens": 0,
"input_tokens_details": null,
"claude_cache_creation_5_m_tokens": 0,
"claude_cache_creation_1_h_tokens": 0
}
}