Authorization: Bearer ********************
{
"model": "flux-kontext-pro",
"stream": false,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "带个墨镜"
},
{
"type": "image_url",
"image_url": {
"url": "https://oss.ffire.cc/files/kling_watermark.png"
}
}
]
}
]
}
curl --location -g --request POST '{{YOUR_BASE_URL}}/v1/chat/completions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "flux-kontext-pro",
"stream": false,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "带个墨镜"
},
{
"type": "image_url",
"image_url": {
"url": "https://oss.ffire.cc/files/kling_watermark.png"
}
}
]
}
]
}'
{
"id": "chatcmpl-HFzvnvahTNQNsNShqpCQTC",
"choices": [
{
"finish_reason": null,
"index": 0,
"logprobs": null,
"message": {
"content": "\n\n",
"refusal": null,
"role": "assistant",
"annotations": null,
"audio": null,
"function_call": null,
"tool_calls": null,
"reasoning_content": ""
}
}
],
"created": 1758020192,
"model": "",
"object": "chat.completion",
"service_tier": null,
"system_fingerprint": null,
"usage": {
"completion_tokens": 0,
"prompt_tokens": 1000,
"total_tokens": 1000,
"completion_tokens_details": null,
"prompt_tokens_details": null
}
}