Ideogram
Los modelos de Ideogram se llaman a través de una API de trabajos asíncrona y unificada. Inicia una tarea con POST /api/generate y luego sondea GET /api/generate/{taskId} hasta que termine. Esta familia expone 6 endpoints.
Resumen
Todos los endpoints comparten la misma envoltura — solo cambian model y los campos input. Ejecuta cualquiera desde el playground del Mercado de modelos.
Autenticación
Crea una API key en /api-keys y luego envíala como token Bearer. Las solicitudes desde el navegador con sesión iniciada también funcionan mediante la cookie de sesión.
Authorization: Bearer <YOUR_API_KEY>Crear tarea
POST https://api.lithovas.com/api/generateCuerpo: { "model": "<slug>", "input": { … } }
Respuesta: { "taskId": "<id>", "state": "waiting" }
Consultar resultado
GET https://api.lithovas.com/api/generate/<taskId>Respuesta: { "taskId", "state": "waiting" | "success" | "fail", "resultUrls": [ … ], "creditsConsumed", "failMsg", "balance" }
state sea success o fail. Las tareas fallidas no se facturan.Endpoints
| Modelo | Tarea | 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-editpromptstringobligatorioText prompt to fill the masked image area (max 5000 chars)
image_urlstringobligatorioImage URL to edit; must match mask dimensions (JPEG/PNG/WebP, max 10MB)
mask_urlstringobligatorioMask URL indicating region to inpaint; must match image dimensions
reference_image_urlsarray<string>obligatorioCharacter reference images (1 supported, max 10MB total)
rendering_speedenum<string>opcionalSpeed/quality tradeoff for generation
styleenum<string>opcionalVisual style for output image generation
expand_promptbooleanopcionalEnable MagicPrompt enhancement
num_imagesenum<string>opcionalNumber of images to generate
seedintegeropcionalRandom 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-remixpromptstringobligatorioText description to remix the image with (max 5000 chars)
image_urlstringobligatorioImage URL to remix (JPEG/PNG/WebP, max 10MB)
reference_image_urlsarray<string>obligatorioCharacter reference images (1 supported, max 10MB)
rendering_speedenum<string>opcionalGeneration speed vs quality tradeoff
styleenum<string>opcionalStyle type for generation
expand_promptbooleanopcionalEnable MagicPrompt enhancement
image_sizeenum<string>opcionalOutput image dimensions
num_imagesenum<string>opcionalNumber of images to generate
seedintegeropcionalRandom number generator seed
strengthnumberopcionalInput image influence strength (0.1-1.0, step 0.1)
negative_promptstringopcionalContent to exclude from generation (max 500 chars)
image_urlsarray<string>opcionalStyle reference images (max 10MB total)
reference_mask_urlsstringopcionalMasks 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/characterpromptstringobligatorioThe prompt to fill the masked part of the image (max 5000 chars)
reference_image_urlsarray<string>obligatorioCharacter reference images (1 supported, max 10MB total)
rendering_speedenum<string>opcionalSpeed setting for generation
styleenum<string>opcionalStyle type for generation
expand_promptbooleanopcionalEnable/disable MagicPrompt expansion
num_imagesenum<string>opcionalNumber of images to generate
image_sizeenum<string>opcionalOutput image resolution
seedintegeropcionalRandom number generator seed for reproducibility
negative_promptstringopcionalExclude 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-imagepromptstringobligatorioDescription of the image to generate (max 5000 chars)
rendering_speedenum<string>opcionalRendering speed vs quality tradeoff
styleenum<string>opcionalVisual style type for generation output
expand_promptbooleanopcionalWhether to use MagicPrompt to enhance the request
image_sizeenum<string>opcionalResolution of the generated image
seedintegeropcionalSeed value for the random number generator
negative_promptstringopcionalDescription 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-editpromptstringobligatorioText describing what to fill in masked area (max 5000 chars)
image_urlstringobligatorioURL of image to edit; must match mask dimensions
mask_urlstringobligatorioURL of mask indicating areas to inpaint; must match image dimensions
rendering_speedenum<string>opcionalSpeed/quality tradeoff for generation
expand_promptbooleanopcionalWhether to apply MagicPrompt enhancement
seedintegeropcionalRandom 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-remixpromptstringobligatorioText prompt to remix the image with (max 5000 chars)
image_urlstringobligatorioURL of image to remix (JPEG/PNG/WebP, max 10MB)
rendering_speedenum<string>opcionalSpeed/quality tradeoff for generation
styleenum<string>opcionalVisual style for output
expand_promptbooleanopcionalEnable MagicPrompt enhancement
image_sizeenum<string>opcionalOutput image resolution/aspect ratio
num_imagesenum<string>opcionalNumber of images to generate
seedintegeropcionalRandom number generator seed for reproducibility
strengthnumberopcionalInfluence of input image (0.01-1.0, step 0.01)
negative_promptstringopcionalContent 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"
}
}'