Ideogram
Ideogram-Modelle werden über eine einheitliche, asynchrone Job-API aufgerufen. Starte einen Task mit POST /api/generate und frage dann GET /api/generate/{taskId} ab, bis er fertig ist. Diese Familie stellt 6 Endpunkte bereit.
Überblick
Jeder Endpunkt teilt sich dieselbe Hülle — nur model und die input-Felder ändern sich. Führe einen beliebigen im Playground des Modell-Markts aus.
Authentifizierung
Erstelle einen API-Schlüssel unter /api-keys und sende ihn als Bearer-Token. Anfragen aus dem Browser bei angemeldeter Sitzung funktionieren auch über das Session-Cookie.
Authorization: Bearer <YOUR_API_KEY>Task erstellen
POST https://api.lithovas.com/api/generateBody: { "model": "<slug>", "input": { … } }
Antwort: { "taskId": "<id>", "state": "waiting" }
Ergebnis abfragen
GET https://api.lithovas.com/api/generate/<taskId>Antwort: { "taskId", "state": "waiting" | "success" | "fail", "resultUrls": [ … ], "creditsConsumed", "failMsg", "balance" }
state zu success oder fail wird. Fehlgeschlagene Tasks werden nicht berechnet.Endpunkte
| Modell | Task | model slug |
|---|---|---|
| Ideogram | Image Editing | ideogram/character-edit |
| Ideogram | Image Editing | ideogram/character-remix |
| Ideogram | Image Editing | ideogram/character |
| Ideogram V3 | Text to Image | ideogram/v3-text-to-image |
| Ideogram V3 Edit | Image Editing | ideogram/v3-edit |
| Ideogram V3 Remix | Image Editing | ideogram/v3-remix |
Ideogram · Image Editing
ideogram/character-editpromptstringerforderlichText prompt to fill the masked image area (max 5000 chars)
image_urlstringerforderlichImage URL to edit; must match mask dimensions (JPEG/PNG/WebP, max 10MB)
mask_urlstringerforderlichMask URL indicating region to inpaint; must match image dimensions
reference_image_urlsarray<string>erforderlichCharacter reference images (1 supported, max 10MB total)
rendering_speedenum<string>optionalSpeed/quality tradeoff for generation
styleenum<string>optionalVisual style for output image generation
expand_promptbooleanoptionalEnable MagicPrompt enhancement
num_imagesenum<string>optionalNumber of images to generate
seedintegeroptionalRandom seed for reproducible generation
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "ideogram/character-edit",
"input": {
"prompt": "A cinematic red panda surfing through neon rain at dusk.",
"image_url": "https://example.com/input.jpg",
"mask_url": "example",
"reference_image_urls": [
"https://example.com/input.jpg"
],
"rendering_speed": "BALANCED",
"style": "AUTO",
"expand_prompt": true,
"num_images": "1",
"seed": 42
}
}'Ideogram · Image Editing
ideogram/character-remixpromptstringerforderlichText description to remix the image with (max 5000 chars)
image_urlstringerforderlichImage URL to remix (JPEG/PNG/WebP, max 10MB)
reference_image_urlsarray<string>erforderlichCharacter reference images (1 supported, max 10MB)
rendering_speedenum<string>optionalGeneration speed vs quality tradeoff
styleenum<string>optionalStyle type for generation
expand_promptbooleanoptionalEnable MagicPrompt enhancement
image_sizeenum<string>optionalOutput image dimensions
num_imagesenum<string>optionalNumber of images to generate
seedintegeroptionalRandom number generator seed
strengthnumberoptionalInput image influence strength (0.1-1.0, step 0.1)
negative_promptstringoptionalContent to exclude from generation (max 500 chars)
image_urlsarray<string>optionalStyle reference images (max 10MB total)
reference_mask_urlsstringoptionalMasks for character references (1 supported, max 10MB)
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "ideogram/character-remix",
"input": {
"prompt": "A cinematic red panda surfing through neon rain at dusk.",
"image_url": "https://example.com/input.jpg",
"reference_image_urls": [
"https://example.com/input.jpg"
],
"rendering_speed": "BALANCED",
"style": "AUTO",
"expand_prompt": true,
"image_size": "square_hd",
"num_images": "1",
"seed": 42,
"strength": 0.8,
"negative_prompt": "",
"image_urls": [
"https://example.com/input.jpg"
],
"reference_mask_urls": ""
}
}'Ideogram · Image Editing
ideogram/characterpromptstringerforderlichThe prompt to fill the masked part of the image (max 5000 chars)
reference_image_urlsarray<string>erforderlichCharacter reference images (1 supported, max 10MB total)
rendering_speedenum<string>optionalSpeed setting for generation
styleenum<string>optionalStyle type for generation
expand_promptbooleanoptionalEnable/disable MagicPrompt expansion
num_imagesenum<string>optionalNumber of images to generate
image_sizeenum<string>optionalOutput image resolution
seedintegeroptionalRandom number generator seed for reproducibility
negative_promptstringoptionalExclude specified elements from generation (max 5000 chars)
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "ideogram/character",
"input": {
"prompt": "A cinematic red panda surfing through neon rain at dusk.",
"reference_image_urls": [
"https://example.com/input.jpg"
],
"rendering_speed": "BALANCED",
"style": "AUTO",
"expand_prompt": true,
"num_images": "1",
"image_size": "square_hd",
"seed": 42,
"negative_prompt": ""
}
}'Ideogram V3 · Text to Image
ideogram/v3-text-to-imagepromptstringerforderlichDescription of the image to generate (max 5000 chars)
rendering_speedenum<string>optionalRendering speed vs quality tradeoff
styleenum<string>optionalVisual style type for generation output
expand_promptbooleanoptionalWhether to use MagicPrompt to enhance the request
image_sizeenum<string>optionalResolution of the generated image
seedintegeroptionalSeed value for the random number generator
negative_promptstringoptionalDescription of what to exclude (max 5000 chars)
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "ideogram/v3-text-to-image",
"input": {
"prompt": "A cinematic red panda surfing through neon rain at dusk.",
"rendering_speed": "TURBO",
"style": "AUTO",
"expand_prompt": false,
"image_size": "square",
"seed": 42,
"negative_prompt": "example"
}
}'Ideogram V3 Edit · Image Editing
ideogram/v3-editpromptstringerforderlichText describing what to fill in masked area (max 5000 chars)
image_urlstringerforderlichURL of image to edit; must match mask dimensions
mask_urlstringerforderlichURL of mask indicating areas to inpaint; must match image dimensions
rendering_speedenum<string>optionalSpeed/quality tradeoff for generation
expand_promptbooleanoptionalWhether to apply MagicPrompt enhancement
seedintegeroptionalRandom number generator seed for reproducible results
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "ideogram/v3-edit",
"input": {
"prompt": "A cinematic red panda surfing through neon rain at dusk.",
"image_url": "https://example.com/input.jpg",
"mask_url": "example",
"rendering_speed": "BALANCED",
"expand_prompt": true,
"seed": 42
}
}'Ideogram V3 Remix · Image Editing
ideogram/v3-remixpromptstringerforderlichText prompt to remix the image with (max 5000 chars)
image_urlstringerforderlichURL of image to remix (JPEG/PNG/WebP, max 10MB)
rendering_speedenum<string>optionalSpeed/quality tradeoff for generation
styleenum<string>optionalVisual style for output
expand_promptbooleanoptionalEnable MagicPrompt enhancement
image_sizeenum<string>optionalOutput image resolution/aspect ratio
num_imagesenum<string>optionalNumber of images to generate
seedintegeroptionalRandom number generator seed for reproducibility
strengthnumberoptionalInfluence of input image (0.01-1.0, step 0.01)
negative_promptstringoptionalContent to exclude from generation (max 5000 chars)
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "ideogram/v3-remix",
"input": {
"prompt": "A cinematic red panda surfing through neon rain at dusk.",
"image_url": "https://example.com/input.jpg",
"rendering_speed": "TURBO",
"style": "AUTO",
"expand_prompt": false,
"image_size": "square",
"num_images": "1",
"seed": 42,
"strength": 1,
"negative_prompt": "example"
}
}'