Ideogram
Ideogram モデルは統一された非同期ジョブ API で呼び出します。POST /api/generate でタスクを開始し、完了するまで GET /api/generate/{taskId} をポーリングします。このファミリーは 6 個のエンドポイントを提供します。
概要
すべてのエンドポイントは同じ外枠を共有し、変わるのは model と input フィールドだけです。モデルマーケットの playground から任意に実行できます。
認証
/api-keys で API キーを作成し、Bearer トークンとして送信します。ログイン中のブラウザからのリクエストはセッション cookie 経由でも動作します。
Authorization: Bearer <YOUR_API_KEY>タスクの作成
POST https://api.lithovas.com/api/generateボディ:{ "model": "<slug>", "input": { … } }
レスポンス:{ "taskId": "<id>", "state": "waiting" }
結果の照会
GET https://api.lithovas.com/api/generate/<taskId>レスポンス:{ "taskId", "state": "waiting" | "success" | "fail", "resultUrls": [ … ], "creditsConsumed", "failMsg", "balance" }
state が success または fail になるまでこのエンドポイントをポーリングしてください。失敗したタスクは課金されません。エンドポイント
| モデル | タスク | 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-editpromptstring必須Text prompt to fill the masked image area (max 5000 chars)
image_urlstring必須Image URL to edit; must match mask dimensions (JPEG/PNG/WebP, max 10MB)
mask_urlstring必須Mask URL indicating region to inpaint; must match image dimensions
reference_image_urlsarray<string>必須Character reference images (1 supported, max 10MB total)
rendering_speedenum<string>任意Speed/quality tradeoff for generation
styleenum<string>任意Visual style for output image generation
expand_promptboolean任意Enable MagicPrompt enhancement
num_imagesenum<string>任意Number of images to generate
seedinteger任意Random 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-remixpromptstring必須Text description to remix the image with (max 5000 chars)
image_urlstring必須Image URL to remix (JPEG/PNG/WebP, max 10MB)
reference_image_urlsarray<string>必須Character reference images (1 supported, max 10MB)
rendering_speedenum<string>任意Generation speed vs quality tradeoff
styleenum<string>任意Style type for generation
expand_promptboolean任意Enable MagicPrompt enhancement
image_sizeenum<string>任意Output image dimensions
num_imagesenum<string>任意Number of images to generate
seedinteger任意Random number generator seed
strengthnumber任意Input image influence strength (0.1-1.0, step 0.1)
negative_promptstring任意Content to exclude from generation (max 500 chars)
image_urlsarray<string>任意Style reference images (max 10MB total)
reference_mask_urlsstring任意Masks 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/characterpromptstring必須The prompt to fill the masked part of the image (max 5000 chars)
reference_image_urlsarray<string>必須Character reference images (1 supported, max 10MB total)
rendering_speedenum<string>任意Speed setting for generation
styleenum<string>任意Style type for generation
expand_promptboolean任意Enable/disable MagicPrompt expansion
num_imagesenum<string>任意Number of images to generate
image_sizeenum<string>任意Output image resolution
seedinteger任意Random number generator seed for reproducibility
negative_promptstring任意Exclude 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-imagepromptstring必須Description of the image to generate (max 5000 chars)
rendering_speedenum<string>任意Rendering speed vs quality tradeoff
styleenum<string>任意Visual style type for generation output
expand_promptboolean任意Whether to use MagicPrompt to enhance the request
image_sizeenum<string>任意Resolution of the generated image
seedinteger任意Seed value for the random number generator
negative_promptstring任意Description 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-editpromptstring必須Text describing what to fill in masked area (max 5000 chars)
image_urlstring必須URL of image to edit; must match mask dimensions
mask_urlstring必須URL of mask indicating areas to inpaint; must match image dimensions
rendering_speedenum<string>任意Speed/quality tradeoff for generation
expand_promptboolean任意Whether to apply MagicPrompt enhancement
seedinteger任意Random 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-remixpromptstring必須Text prompt to remix the image with (max 5000 chars)
image_urlstring必須URL of image to remix (JPEG/PNG/WebP, max 10MB)
rendering_speedenum<string>任意Speed/quality tradeoff for generation
styleenum<string>任意Visual style for output
expand_promptboolean任意Enable MagicPrompt enhancement
image_sizeenum<string>任意Output image resolution/aspect ratio
num_imagesenum<string>任意Number of images to generate
seedinteger任意Random number generator seed for reproducibility
strengthnumber任意Influence of input image (0.01-1.0, step 0.01)
negative_promptstring任意Content 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"
}
}'