Images
Images
Generate images from text descriptions using our image generation model.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | No | Model to use (default: meedoo-image) |
prompt | string | Yes | Text description (max 4000 chars) |
n | integer | No | Number of images (1-10, default: 1) |
size | string | No | Size: 256x256, 512x512, 1024x1024, 1792x1024, 1024x1792 |
quality | string | No | Quality: standard or hd |
response_format | string | No | Format: url or b64_json |
style | string | No | Style: vivid or natural |
Generate Image
Image Pricing
| Resolution | Standard | HD |
|---|---|---|
| 1024x1024 | 0.020 € | 0.040 € |
| 1024x1792 | 0.030 € | 0.060 € |
| 1792x1024 | 0.030 € | 0.060 € |
POST
/api/v1/images/generations Generate Image
Creates an image given a prompt.
Parameters
| Name | Type | Req | Description | Default |
|---|---|---|---|---|
prompt | string | Yes | Text description of the image to generate | — |
model | string | Yes | Model to use (meedoo-eyes) | meedoo-eyes |
n | integer | No | Number of images to generate | 1 |
size | string | No | Image size (256x256, 512x512, 1024x1024) | 1024x1024 |
quality | string | No | Image quality (standard, hd) | standard |
response_format | string | No | Response format (url or b64_json) | url |
Response Examples
{
"created": 1791815801,
"data": [
{
"url": "https://api.meedoo.co/api/v1/images/generations/result/img_abc123.png",
"revised_prompt": null
}
]
}Code Examples
Generate Image
curl -X POST https://api.meedoo.co/api/v1/images/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "meedoo-eyes",
"prompt": "A futuristic city at sunset, digital art",
"n": 1,
"size": "1024x1024"
}'