curl --request POST \ --url https://api.example.com/api/ai/image/generation \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "openai/dall-e-3", "prompt": "A serene landscape with mountains and a lake at sunset"}'
Copy
{ "model": "<string>", "images": [ { "type": "image_url", "image_url": { "url": "<string>" } } ], "text": "<string>", "count": 123, "metadata": { "model": "<string>", "revisedPrompt": "<string>", "usage": { "promptTokens": 123, "completionTokens": 123, "totalTokens": 123 } }, "nextActions": "Images have been generated successfully. Use the returned URLs or base64 data to access them."}
Client
Generate images
Generate images using specified model and prompt
POST
/
api
/
ai
/
image
/
generation
Generate images
Copy
curl --request POST \ --url https://api.example.com/api/ai/image/generation \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "openai/dall-e-3", "prompt": "A serene landscape with mountains and a lake at sunset"}'
Copy
{ "model": "<string>", "images": [ { "type": "image_url", "image_url": { "url": "<string>" } } ], "text": "<string>", "count": 123, "metadata": { "model": "<string>", "revisedPrompt": "<string>", "usage": { "promptTokens": 123, "completionTokens": 123, "totalTokens": 123 } }, "nextActions": "Images have been generated successfully. Use the returned URLs or base64 data to access them."}