マーケットサポート← アプリに戻る

Qwen

Qwen モデルは統一された非同期ジョブ API で呼び出します。POST /api/generate でタスクを開始し、完了するまで GET /api/generate/{taskId} をポーリングします。このファミリーは 9 個のエンドポイントを提供します。

概要

すべてのエンドポイントは同じ外枠を共有し、変わるのは modelinput フィールドだけです。モデルマーケットの playground から任意に実行できます。

Qwen Image 3.0
Supports complex layouts, accurate typography, multilingual visuals, and realistic material detail. Standard text/image-to-image costs 5.04 credits per image at 1K/2K; Pro costs 6.72 credits at 1K and 12.6 at 2K. Image inputs cost 0.53 credits each, up to 3 images.

認証

/api-keys で API キーを作成し、Bearer トークンとして送信します。ログイン中のブラウザからのリクエストはセッション cookie 経由でも動作します。

Authorization: Bearer <YOUR_API_KEY>

タスクの作成

POST
POST https://api.lithovas.com/api/generate

ボディ:{ "model": "<slug>", "input": { … } }

レスポンス:{ "taskId": "<id>", "state": "waiting" }

結果の照会

GET
GET https://api.lithovas.com/api/generate/<taskId>

レスポンス:{ "taskId", "state": "waiting" | "success" | "fail", "resultUrls": [ … ], "creditsConsumed", "failMsg", "balance" }

非同期
タスク作成の 200 は、タスクが受理されたことを意味するだけで、完了ではありません。statesuccess または fail になるまでこのエンドポイントをポーリングしてください。失敗したタスクは課金されません。

エンドポイント

モデルタスクmodel slug
QwenText to Imageqwen/text-to-image
QwenImage to Imageqwen/image-to-image
Image EditImage Editingqwen/image-edit
Image EditImage Editingqwen2/image-edit
Qwen2Text to Imageqwen2/text-to-image
Qwen Image 3.0Text to Imageqwen3/text-to-image
Qwen Image 3.0Image to Imageqwen3/image-to-image
Qwen Image 3.0 ProText to Imageqwen3/pro-text-to-image
Qwen Image 3.0 ProImage to Imageqwen3/pro-image-to-image

Qwen · Text to Image

POSTText to Imageqwen/text-to-image
input フィールド
promptstring必須

The prompt to generate the image with (max 5000 chars)

image_sizeenum<string>任意

Size of the generated image

num_inference_stepsnumber任意

Number of inference steps (min 2, max 250)

seedinteger任意

Seed value for reproducible outputs

guidance_scalenumber任意

CFG scale for prompt adherence (min 0, max 20)

enable_safety_checkerboolean任意

Enable safety content filtering

output_formatenum<string>任意

Image output format

negative_promptstring任意

Negative prompt for generation (max 500 chars)

accelerationenum<string>任意

Speed/quality tradeoff for generation

nsfw_checkerboolean任意

Disable content filtering when set to false

cURL
curl -X POST https://api.lithovas.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "qwen/text-to-image",
  "input": {
    "prompt": "A cinematic red panda surfing through neon rain at dusk.",
    "image_size": "square_hd",
    "num_inference_steps": 30,
    "seed": 42,
    "guidance_scale": 2.5,
    "enable_safety_checker": false,
    "output_format": "png",
    "negative_prompt": "example",
    "acceleration": "none",
    "nsfw_checker": false
  }
}'

Qwen · Image to Image

POSTImage to Imageqwen/image-to-image
input フィールド
promptstring必須

Text prompt to guide image generation (max 5000 chars)

image_urlstring必須

Reference image URL to guide generation (max 10MB)

strengthnumber任意

Denoising strength: 1.0 fully remakes, 0.0 preserves original

output_formatenum<string>任意

Output image format

accelerationenum<string>任意

Speed vs quality tradeoff for generation

negative_promptstring任意

What to exclude from generation (max 500 chars)

seedinteger任意

Fixed seed produces consistent results with same prompt

num_inference_stepsnumber任意

Generation iterations (2-250 steps)

guidance_scalenumber任意

CFG scale controlling adherence to prompt (0-20)

enable_safety_checkerboolean任意

Enable safety content filtering

nsfw_checkerboolean任意

Disable content filtering when set to false

cURL
curl -X POST https://api.lithovas.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "qwen/image-to-image",
  "input": {
    "prompt": "A cinematic red panda surfing through neon rain at dusk.",
    "image_url": "https://example.com/input.jpg",
    "strength": 0.8,
    "output_format": "png",
    "acceleration": "none",
    "negative_prompt": "example",
    "seed": 42,
    "num_inference_steps": 30,
    "guidance_scale": 2.5,
    "enable_safety_checker": false,
    "nsfw_checker": false
  }
}'

Image Edit · Image Editing

POSTImage Editingqwen/image-edit
input フィールド
promptstring必須

The prompt to generate the image with (max 2000 chars)

image_urlstring必須

URL of image to edit (jpeg/png/webp, max 10MB)

accelerationenum<string>任意

Acceleration level balancing speed and quality

image_sizeenum<string>任意

The size of the generated image

num_inference_stepsnumber任意

Number of inference steps (min 2, max 49)

seedinteger任意

Same seed with same prompt outputs identical image

guidance_scalenumber任意

CFG scale controls prompt adherence (min 0, max 20)

sync_modeboolean任意

Wait for generation completion before returning response

num_imagesenum<string>任意

Number of images to generate

enable_safety_checkerboolean任意

Enable safety checker for content filtering

output_formatenum<string>任意

Format of the generated image

negative_promptstring任意

Negative prompt for generation (max 500 chars)

nsfw_checkerboolean任意

Disable content filtering; returns unfiltered results

cURL
curl -X POST https://api.lithovas.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "qwen/image-edit",
  "input": {
    "prompt": "A cinematic red panda surfing through neon rain at dusk.",
    "image_url": "https://example.com/input.jpg",
    "acceleration": "none",
    "image_size": "landscape_4_3",
    "num_inference_steps": 25,
    "seed": 42,
    "guidance_scale": 4,
    "sync_mode": false,
    "num_images": "1",
    "enable_safety_checker": true,
    "output_format": "png",
    "negative_prompt": "example",
    "nsfw_checker": false
  }
}'

Image Edit · Image Editing

POSTImage Editingqwen2/image-edit
input フィールド
promptstring必須

Text instruction for image editing (max 800 chars)

image_urlstring必須

URL of image to edit (JPEG/PNG/WebP, max 10MB)

image_sizeenum<string>任意

Output image aspect ratio

seedinteger任意

Reproducible generation seed for consistent outputs

output_formatenum<string>任意

Generated image file format

nsfw_checkerboolean任意

Enable/disable content filtering on results

cURL
curl -X POST https://api.lithovas.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "qwen2/image-edit",
  "input": {
    "prompt": "A cinematic red panda surfing through neon rain at dusk.",
    "image_url": "https://example.com/input.jpg",
    "image_size": "16:9",
    "seed": 42,
    "output_format": "png",
    "nsfw_checker": false
  }
}'

Qwen2 · Text to Image

POSTText to Imageqwen2/text-to-image
input フィールド
promptstring必須

The prompt to generate the image with (max 800 chars)

image_sizeenum<string>任意

The size of the generated image

seedinteger任意

Same seed with same prompt outputs identical image

output_formatenum<string>任意

The format of the generated image

nsfw_checkerboolean任意

Disable content filtering when set to false

cURL
curl -X POST https://api.lithovas.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "qwen2/text-to-image",
  "input": {
    "prompt": "A cinematic red panda surfing through neon rain at dusk.",
    "image_size": "16:9",
    "seed": 42,
    "output_format": "png",
    "nsfw_checker": false
  }
}'

Qwen Image 3.0 · Text to Image

POSTText to Imageqwen3/text-to-image
input フィールド
promptstring必須

Positive prompt in Chinese or English, up to 800 characters.

resolutionenum<string>任意

Output resolution tier.

image_sizeenum<string>任意

Output aspect ratio.

output_formatenum<string>任意

Generated image format.

prompt_extendboolean任意

Enable intelligent prompt rewriting.

negative_promptstring任意

Content that should not appear in the image, up to 5000 characters.

seedinteger任意

Random seed from 0 to 2147483647.

nsfw_checkerboolean任意

Enable content safety checking.

cURL
curl -X POST https://api.lithovas.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "qwen3/text-to-image",
  "input": {
    "prompt": "Create a realistic editorial visual with accurate typography, detailed materials, and a clear structured layout.",
    "resolution": "1K",
    "image_size": "16:9",
    "output_format": "png",
    "prompt_extend": true,
    "negative_prompt": "example",
    "seed": 1,
    "nsfw_checker": true
  }
}'

Qwen Image 3.0 · Image to Image

POSTImage to Imageqwen3/image-to-image
input フィールド
image_urlsarray<string>必須

Source image URLs. Supports JPEG, PNG, WEBP, BMP, GIF, and TIFF; up to 3 images, 10 MB each.

promptstring必須

Positive prompt in Chinese or English, up to 800 characters.

resolutionenum<string>任意

Output resolution tier.

image_sizeenum<string>任意

Output aspect ratio.

output_formatenum<string>任意

Generated image format.

prompt_extendboolean任意

Enable intelligent prompt rewriting.

negative_promptstring任意

Content that should not appear in the image, up to 5000 characters.

seedinteger任意

Random seed from 0 to 2147483647.

nsfw_checkerboolean任意

Enable content safety checking.

cURL
curl -X POST https://api.lithovas.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "qwen3/image-to-image",
  "input": {
    "image_urls": [
      "https://example.com/input.jpg"
    ],
    "prompt": "Transform the source image into a polished editorial visual while preserving the subject and composition.",
    "resolution": "1K",
    "image_size": "16:9",
    "output_format": "png",
    "prompt_extend": true,
    "negative_prompt": "example",
    "seed": 1,
    "nsfw_checker": true
  }
}'

Qwen Image 3.0 Pro · Text to Image

POSTText to Imageqwen3/pro-text-to-image
input フィールド
promptstring必須

Positive prompt in Chinese or English, up to 800 characters.

resolutionenum<string>任意

Output resolution tier.

image_sizeenum<string>任意

Output aspect ratio.

output_formatenum<string>任意

Generated image format.

prompt_extendboolean任意

Enable intelligent prompt rewriting.

negative_promptstring任意

Content that should not appear in the image, up to 5000 characters.

seedinteger任意

Random seed from 0 to 2147483647.

nsfw_checkerboolean任意

Enable content safety checking.

cURL
curl -X POST https://api.lithovas.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "qwen3/pro-text-to-image",
  "input": {
    "prompt": "Create a realistic editorial visual with accurate typography, detailed materials, and a clear structured layout.",
    "resolution": "1K",
    "image_size": "16:9",
    "output_format": "png",
    "prompt_extend": true,
    "negative_prompt": "example",
    "seed": 1,
    "nsfw_checker": true
  }
}'

Qwen Image 3.0 Pro · Image to Image

POSTImage to Imageqwen3/pro-image-to-image
input フィールド
image_urlsarray<string>必須

Source image URLs. Supports JPEG, PNG, WEBP, BMP, GIF, and TIFF; up to 3 images, 10 MB each.

promptstring必須

Positive prompt in Chinese or English, up to 800 characters.

resolutionenum<string>任意

Output resolution tier.

image_sizeenum<string>任意

Output aspect ratio.

output_formatenum<string>任意

Generated image format.

prompt_extendboolean任意

Enable intelligent prompt rewriting.

negative_promptstring任意

Content that should not appear in the image, up to 5000 characters.

seedinteger任意

Random seed from 0 to 2147483647.

nsfw_checkerboolean任意

Enable content safety checking.

cURL
curl -X POST https://api.lithovas.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "qwen3/pro-image-to-image",
  "input": {
    "image_urls": [
      "https://example.com/input.jpg"
    ],
    "prompt": "Transform the source image into a polished editorial visual while preserving the subject and composition.",
    "resolution": "1K",
    "image_size": "16:9",
    "output_format": "png",
    "prompt_extend": true,
    "negative_prompt": "example",
    "seed": 1,
    "nsfw_checker": true
  }
}'