Ideogram V4
Ideogram V4 text-to-image generation with crisp visuals and industry-leading text rendering — ideal for logos, posters, marketing visuals, and brand assets.
Model
| Model Name | Output | Mode |
|---|---|---|
ideogram-v4 | Image URLs | Text-to-image |
Pricing
Priced per image by rendering_speed. All sizes are charged the same:
| Rendering Speed | Credits | Price |
|---|---|---|
TURBO | 16 credits | $0.08 |
BALANCED (default) | 28 credits | $0.14 |
QUALITY | 44 credits | $0.22 |
size and output_format do not affect pricing.
Create Task
curl -X POST https://api.aivideoapi.ai/v1/images/generations \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "ideogram-v4",
"callback_url": "https://your-server.com/webhook",
"input": {
"prompt": "A minimalist coffee shop logo with the text \"Daily Brew\"",
"size": "1:1",
"rendering_speed": "BALANCED",
"output_format": "png"
}
}'
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Must be ideogram-v4 |
input | object | Yes | Generation parameters, see below |
callback_url | string | No | Optional callback URL for completion/failure notifications |
Input Parameters
| Field | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes | Text prompt describing the image to generate, max 5,000 characters |
size | string | No | Output image size preset, defaults to 1:1. One of: 1:1, 3:4, 9:16, 4:3, 16:9 |
rendering_speed | string | No | Rendering speed and quality tier, defaults to BALANCED. One of: TURBO, BALANCED, QUALITY. Faster speeds use fewer denoising steps |
output_format | string | No | Format of the generated image, defaults to jpeg. One of: jpeg, png |
Example: Widescreen Poster (TURBO)
curl -X POST https://api.aivideoapi.ai/v1/images/generations \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "ideogram-v4",
"input": {
"prompt": "A retro concert poster with bold headline text \"SUMMER NIGHTS\" in neon typography",
"size": "16:9",
"rendering_speed": "TURBO"
}
}'
Response
{
"code": 200,
"msg": "success",
"data": {
"taskId": "397ce9f2-c04e-4244-ac33-3af19a7cc297"
}
}
Query Task
curl https://api.aivideoapi.ai/v1/tasks/{taskId} \
-H "Authorization: Bearer sk-your-api-key"
Status flow: pending -> processing -> completed or failed.
Completed
{
"id": "397ce9f2-c04e-4244-ac33-3af19a7cc297",
"status": "completed",
"model": "ideogram-v4",
"created_at": 1781000000,
"completed_at": 1781000020,
"output": {
"urls": [
"https://file.aivideoapi.ai/images/2026/06/05/abc123.png"
],
"metadata": {
"model": "ideogram-ai/ideogram-v4"
}
}
}
Failed
{
"id": "57c8772c-f834-46f3-9b7d-81f92e104050",
"status": "failed",
"model": "ideogram-v4",
"created_at": 1781000000,
"error": {
"code": "upstream_error",
"message": "Image generation failed"
}
}
Failed tasks are automatically refunded.
Callback
Pass callback_url when creating the task. The system will automatically send a POST request to your URL when the task completes or fails, so you don't have to poll.
Headers
| Header | Description |
|---|---|
Content-Type | application/json |
X-Event | Event type: task.completed or task.failed |
X-Task-Id | Task ID |
X-Timestamp | Unix timestamp (seconds) |
Completed Payload
{
"id": "397ce9f2-c04e-4244-ac33-3af19a7cc297",
"status": "completed",
"model": "ideogram-v4",
"created_at": 1781000000,
"completed_at": 1781000020,
"output": {
"urls": [
"https://file.aivideoapi.ai/images/2026/06/05/abc123.png"
],
"metadata": {
"model": "ideogram-ai/ideogram-v4"
}
}
}
Failed Payload
{
"id": "57c8772c-f834-46f3-9b7d-81f92e104050",
"status": "failed",
"model": "ideogram-v4",
"created_at": 1781000000,
"error": {
"code": "upstream_error",
"message": "Image generation failed"
}
}
When a task fails, pre-charged credits are automatically refunded.
Retry Policy
If your server is unreachable or returns a non-2xx status, the system will retry up to 3 times:
| Attempt | Timing |
|---|---|
| 1st | Immediate |
| 2nd | 3 minutes later |
| 3rd | 10 minutes later |
If all 3 attempts fail, the callback is marked as failed. You can always fall back to polling GET /v1/tasks/{taskId} to check the final status.
Error Codes
When a request fails, the API returns a JSON error response:
{
"error": {
"code": "insufficient_credits",
"message": "Your credit balance is too low. Please top up.",
"type": "billing_error"
}
}
Error Reference
| HTTP Status | Code | Type | Description |
|---|---|---|---|
| 400 | invalid_request | invalid_request_error | Missing or invalid parameters |
| 401 | invalid_api_key | authentication_error | API key is invalid, disabled, or deleted |
| 402 | insufficient_credits | billing_error | Credit balance too low, please top up |
| 403 | ip_not_allowed | permission_error | Request IP not in the key's allowlist |
| 404 | model_not_found | invalid_request_error | Model does not exist or is inactive |
| 404 | task_not_found | invalid_request_error | Task ID does not exist |
| 429 | rate_limit_exceeded | rate_limit_error | Too many requests, please slow down |
| 429 | spend_limit_exceeded | billing_error | Key spend limit reached (hourly/daily/total) |
| 500 | internal_error | api_error | Unexpected server error |
| 503 | upstream_error | upstream_error | Upstream AI provider returned an error |
Common Scenarios
invalid_request (400)
Returned when required fields are missing or invalid.
{
"error": {
"code": "invalid_request",
"message": "'model' is required.",
"type": "invalid_request_error"
}
}
insufficient_credits (402)
Your balance is too low. Check your balance with GET /v1/credits and top up in Dashboard > Billing.
invalid_api_key (401)
Possible causes:
- The key does not start with
sk- - The key has been disabled or deleted
- The user account has been banned
upstream_error (503)
The upstream AI provider returned an error. This may happen when:
- The input contains sensitive or prohibited content
- The provider is temporarily unavailable
- The request parameters are not supported by the provider
Credits are automatically refunded when a task fails due to upstream errors.