{"stream":false,"model":"flux-kontext-pro","messages":[{"role":"user","content":"Draw me a blue cat"}]}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://gptproto.com/v1/chat/completions' \
--header'Authorization: sk-*****' \
--header'Content-Type: application/json' \
--data-raw'{
"stream": false,
"model": "flux-kontext-pro",
"messages": [
{
"role": "user",
"content": "Draw me a blue cat"
}
]
}'
Responses
🟢200Success
text/plain
Body
Example
{"id":"chatcmpl-89DJ6n8Buxn2rarhsH3SGjctL5MNC","object":"chat.completion","created":1722957713,"model":"flux","choices":[{"index":0,"message":{"role":"assistant","content":"```\n{\n \"prompt\": \"A modern, sleek icon design for a website called 'gptgod'. The icon should feature abstract elements representing AI technology, with a color palette of blue and silver. The design should be minimalistic yet impactful, suitable for digital platforms. The icon should convey intelligence and innovation.\",\n \"height\": 1440,\n \"width\": 1440\n}\n```\n\n\n\n> Generating...✅\n\n"},"finish_reason":"stop"}],"usage":{"prompt_tokens":18,"completion_tokens":162,"total_tokens":180}}