Chat Completions (Coming soon)
Use the text-compatible chat endpoint.
Chat Completions (Coming soon)
Use POST /v1/chat/completions for text chat responses. This endpoint is for text only; use the image, video, or music pages when you want to generate media.
This endpoint is documented for preview and is not open yet.
Endpoint
POST /v1/chat/completionsRequest body
| Field | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Text model name. |
messages | array | Yes | Chat messages with role and content. |
stream | boolean | No | Streaming is not supported yet. Keep this omitted or false. |
Message roles
Supported roles are system, user, and assistant.
Example request
curl https://gptimge.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5",
"messages": [
{
"role": "user",
"content": "Write a short product description for an AI image tool."
}
]
}'Example response
{
"id": "chatcmpl_id",
"object": "chat.completion",
"model": "openai/gpt-5",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "..."
},
"finish_reason": "stop"
}
]
}