Conversations
Send message
Sends a message to a conversation thread and returns the model's response. If conversation_id is omitted or null, a new conversation thread is created. Supports both streaming and non-streaming response modes via the stream flag. An optional system_prompt_id attaches a saved system prompt template to the request.
post/conversations/send_message
Request
- Base URL: https://console.hyperstack.cloud/ai/api/v1
- URL: https://console.hyperstack.cloud/ai/api/v1/conversations/send_message
- Auth: API key in header api_key
Request body
Example request
{
"model": "Llama-3.3-70B-Instruct",
"message": "What did I just say?",
"conversation_id": 1001,
"stream": false
}Response
Example response
{
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "This image is a stylized, pixel-art depiction of a sunset or sunrise over mountains.\n\nHere's a breakdown of what's in the image:\n\n- **The Sun:** A large, pale yellow/cream-colored circle sits just above the mountain ridge, appearing to be setting or rising.\n- **The Mountains:** Two dark purple, jagged peaks form the foreground. The silhouette suggests a simple, stylized mountain range.\n- **The Sky:** The background sky features a gradient of colors, transitioning from deep purple at the top to a warm orange/pink near the horizon where the sun is located.\n\nThe overall aesthetic is minimalist and retro, reminiscent of early video game graphics or digital art with a pixelated style. It evokes a sense of calm and natural beauty through its simple composition.",
"role": "assistant"
}
}
],
"conversation": {
"id": 1001,
"title": "Image content unknown."
},
"created": 1736932200,
"id": "a1b2c3d4e5f6789012345678901234ab",
"model": "qwen/qwen3-vl-8b-instruct",
"object": "chat.completion",
"system_fingerprint": "",
"usage": {
"completion_tokens": 159,
"completion_tokens_details": {
"accepted_prediction_tokens": 0,
"audio_tokens": 0,
"image_tokens": 0,
"reasoning_tokens": 0,
"rejected_prediction_tokens": 0,
"text_tokens": 159,
"video_tokens": 0
},
"prompt_tokens": 93,
"prompt_tokens_details": {
"audio_tokens": 0,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"cached_tokens": 0,
"image_tokens": 79,
"text_tokens": 14,
"video_tokens": 0
},
"total_tokens": 252
}
}Changes
No recorded changes to this operation across all 1 revision of this API.