{"messages":"Give me an image of a cute, phantom, cockapoo. Very cute, not too fluffy","quality":"hd","size":"1024x1024","provider":"OpenAI","steps":30,"cfg_scale":2,"style":"vivid"}
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 'http://localhost:3000/api/cortext-text-to-image' \
--header'X-API-KEY;' \
--header'Content-Type: application/json' \
--data-raw'{
"messages": "Give me an image of a cute, phantom, cockapoo. Very cute, not too fluffy",
"quality": "hd",
"size": "1024x1024",
"provider": "OpenAI",
"steps": 30,
"cfg_scale": 2,
"style": "vivid"
}'
Responses
🟢200Successful Response
application/json
Body
Example
[{"prompt":"Give me an image of a cute, phantom, cockapoo. Very cute, not too fluffy","revised_prompt":"Create an image featuring an endearing phantom cockapoo. This adorable canine should possess an ethereal, almost spectral aura. While the cockapoo breed is known for its fluffy fur, for this specific image, the fur should be maintained at a moderate level, ensuring that the dog still maintains a cute appearance but is not exceedingly fluffy.","model":"dall-e-3","style":"vivid","size":"1024x1024","quality":"hd","image_url":"https://corcel.b-cdn.net/37d992c9-22a7-4a9e-8197-c12b570e4bca.webp"}]