Ideogram 3.0

This guide shows how to generate images using Ideogram 3.0 model via the Leonardo.AI REST API.

Sample Request

curl --request POST \
     --url https://cloud.leonardo.ai/api/rest/v2/generations \
     --header 'accept: application/json' \
     --header 'authorization: Bearer <YOUR_API_KEY>' \
     --header 'content-type: application/json' \
     --data '{
       "model": "ideogram-v3.0",
       "parameters": {
           "width": 1024,
           "height": 1024,
           "prompt": "A dynamically stylish green running shoe dominates the frame, with the text Leonardo, the text boldly emblazoned in white. Against a vivid blue backdrop, the shoe exudes modernity with a hint of motion blur, conveying speed and dynamism. Crisp lines and vibrant hues are subtly softened, capturing the essence of movement",
           "mode": "TURBO",
           "quantity": 2,
           "style_ids": [
               "111dc692-d470-4eec-b791-3475abac4c46"
           ]
       },
       "public": false
   }'

Recipe

API Request Endpoint, Headers, Parameters

Endpoint

https://cloud.leonardo.ai/api/rest/v2/generations

Headers

--header "accept: application/json" \
--header "authorization: Bearer <YOUR_API_KEY>" \
--header "content-type: application/json"

Body Parameters

ParameterTypeDefinition
heightintegerOptional. Height input resolution.
modestringOptional. Accepts TURBO, BALANCED, or QUALITY.
modelstringRequired. Model identifier. Set to ideogram-v3.0
promptstringRequired. Text prompt describing what image you want the model to generate.
prompt_enhancestringOptional. Enables prompt enhancement when set to "ON"; disabled when set to "OFF".
publicbooleanOptional. Boolean flag that determines whether the generation is public (true) or private (false).
quantityintegerOptional. Number of images to generate in a single request.
seedintegerOptional. Apply a fixed seed to maintain consistency across generation sets.
style_idsarrayOptional. Array of style UUIDs used to apply preset artistic styles to the output.
widthintegerOptional. Width input resolution.

List of Style IDs

Preset StyleUUID
Cinematica5632c7c-ddbb-4e2f-ba34-8456ab3ac436
Creative6fedbf1f-4a17-45ec-84fb-92fe524a29ef
Dynamic111dc692-d470-4eec-b791-3475abac4c46
Fashion594c4a08-a522-4e0e-b7ff-e4dac4b6b622
Portraitab5a4220-7c42-41e5-a578-eddb9fed3d75
Stock Photo5bdc3f2a-1be6-4d1c-8e77-992a30824a2c
Vibrantdee282d3-891f-4f73-ba02-7f8131e5541b