cURL
curl --request POST \ --url https://dev.hub.oxen.ai/api/ai/images/generate \ --header 'Content-Type: application/json' \ --data ' { "model": "<string>", "prompt": "<string>", "n": 1, "seed": 123, "size": "<string>" } '
{ "created": 123, "images": [ { "revised_prompt": "<string>", "url": "<string>" } ], "model": "<string>" }
Creates an image from a text prompt.
Documentation IndexFetch the complete documentation index at: https://docs.oxen.ai/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.oxen.ai/llms.txt
Use this file to discover all available pages before exploring further.
Image generation request
Model ID to use for image generation
Text prompt describing the desired image
Number of images to generate
Image size
Generated images
Show child attributes