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 NameOutputMode
ideogram-v4Image URLsText-to-image

Pricing

Priced per image by rendering_speed. All sizes are charged the same:

Rendering SpeedCreditsPrice
TURBO16 credits$0.08
BALANCED (default)28 credits$0.14
QUALITY44 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

FieldTypeRequiredDescription
modelstringYesMust be ideogram-v4
inputobjectYesGeneration parameters, see below
callback_urlstringNoOptional callback URL for completion/failure notifications

Input Parameters

FieldTypeRequiredDescription
promptstringYesText prompt describing the image to generate, max 5,000 characters
sizestringNoOutput image size preset, defaults to 1:1. One of: 1:1, 3:4, 9:16, 4:3, 16:9
rendering_speedstringNoRendering speed and quality tier, defaults to BALANCED. One of: TURBO, BALANCED, QUALITY. Faster speeds use fewer denoising steps
output_formatstringNoFormat 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

HeaderDescription
Content-Typeapplication/json
X-EventEvent type: task.completed or task.failed
X-Task-IdTask ID
X-TimestampUnix 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:

AttemptTiming
1stImmediate
2nd3 minutes later
3rd10 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 StatusCodeTypeDescription
400invalid_requestinvalid_request_errorMissing or invalid parameters
401invalid_api_keyauthentication_errorAPI key is invalid, disabled, or deleted
402insufficient_creditsbilling_errorCredit balance too low, please top up
403ip_not_allowedpermission_errorRequest IP not in the key's allowlist
404model_not_foundinvalid_request_errorModel does not exist or is inactive
404task_not_foundinvalid_request_errorTask ID does not exist
429rate_limit_exceededrate_limit_errorToo many requests, please slow down
429spend_limit_exceededbilling_errorKey spend limit reached (hourly/daily/total)
500internal_errorapi_errorUnexpected server error
503upstream_errorupstream_errorUpstream 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.