curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "ideogram-v4.5",
"input": {
"prompt": "A ceramic robot with a clean silhouette."
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2026-10-13T10:30:00+08:00"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}Ideogram
Ideogram V4.5
The Ideogram 4.5 API generates images from a prompt or edits one primary image. Edits can add up to four reference images, or three when a mask is set, and high precision keeps unedited pixels.
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "ideogram-v4.5",
"input": {
"prompt": "A ceramic robot with a clean silhouette."
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2026-10-13T10:30:00+08:00"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}- After submission, a
task_idwill be returned. If you provided acallback_url, when the task status becomesfinishedorfailed, a POST request will be sent to thecallback_url. - Regardless of whether
callback_urlis provided, you can retrieve the result through the unified Query Task Status endpoint.
Models
- ideogram-v4.5 - Text-to-image generation with quality and size controls
- ideogram-v4.5-edit - Edit exactly one primary image, with optional references, masks, and precision controls
Required parameters
- model:
ideogram-v4.5orideogram-v4.5-edit - input.prompt: Required for both models. Use
1-10000characters containing non-whitespace text - input.image_urls: Required for
ideogram-v4.5-edit. Exactly one primary image. Not supported byideogram-v4.5
Optional parameters
- n: Number of output images. Integer from
1to8. Default is1 - quality: Output quality. Default is
medium.ideogram-v4.5acceptslow,medium, andhigh.ideogram-v4.5-editalso acceptsvery_low - size: Output size. See the size rules below
- reference_image_urls: Edit only. Up to four reference images without a mask, or at most three when
mask_urlis set - mask_url: Edit only. Must match the primary image dimensions and contain both black edit areas and white preserve areas. Image-content requirements are checked during processing. Requires
size=autoor an omittedsize - edit_precision: Edit only.
regularorhigh. Default isregular.highrestores unchanged pixels and requiressize=autoor an omittedsize - callback_url: Optional webhook URL for task completion notification
Size
ideogram-v4.5 defaults to 1:1 HD. It accepts the aspect ratios 1:1, 1:1 HD, 4:3, 3:4, 16:9, and 9:16, or one of these exact sizes:
1024x1024, 1024x3072, 1120x896, 1152x2944, 1152x864, 1248x3328, 1248x832, 1280x3072, 1280x720, 1280x800, 1296x3168, 1440x2560, 1440x2880, 1440x720, 1600x2560, 1664x2496, 1728x2304, 1792x2240, 2048x2048, 2240x1792, 2304x1728, 2496x1664, 2560x1440, 2560x1600, 2880x1440, 2944x1152, 3072x1024, 3072x1280, 3168x1296, 3328x1248, 720x1280, 720x1440, 800x1280, 832x1248, 864x1152, 896x1120.
ideogram-v4.5-edit defaults to auto, which preserves the source size.
- A mask, or
edit_precision=high, requiresautoor an omitted size. - Ratio presets and custom
WIDTHxHEIGHTsizes require an unmasked regular edit. - Custom edit dimensions must each be at least
256, divisible by32, total at most4,194,304pixels, and have an aspect ratio of at most6:1.
Examples
Generate Image
{
"model": "ideogram-v4.5",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "A ceramic robot with a clean silhouette."
}
}
Edit Image
{
"model": "ideogram-v4.5-edit",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "Replace the background with a blue studio.",
"image_urls": [
"https://example.com/source.png"
]
}
}
High-precision masked edit
{
"model": "ideogram-v4.5-edit",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "Replace the black mask area with flowers.",
"image_urls": [
"https://example.com/source.png"
],
"mask_url": "https://example.com/mask.png",
"reference_image_urls": [
"https://example.com/flowers.png"
],
"edit_precision": "high"
}
}
Notes
ideogram-v4.5-editrequires exactly one primary image inimage_urls.- Query status through the standard task status API.
- Successful responses return
files, where generated images usefile_type: image.
Authorizations
All API endpoints require Bearer Token authentication.
Create an API key: sign in to PoYo, open Dashboard → API Key at poyo.ai/dashboard/api-key, and click to create a key.
Add it to the request header:
Authorization: Bearer YOUR_API_KEY
Body
application/json
Response
Task accepted; query the task for final files.
Business status code. 200 means success; any other value means the request failed. Always check this field: some validation errors return HTTP 200 with code: 400 in the body.
200: Success400: Invalid request parameters401: Missing or invalid API key402: Insufficient credits403: Permission denied404: Resource not found408: Request timeout429: Rate limit exceeded500: Internal server error502: Upstream service error503: Service unavailable
See Error Codes for details.
Available options:
200, 400, 401, 402, 403, 404, 408, 429, 500, 502, 503 Example:
200