Seedream
Seedream モデルは統一された非同期ジョブ API で呼び出します。POST /api/generate でタスクを開始し、完了するまで GET /api/generate/{taskId} をポーリングします。このファミリーは 10 個のエンドポイントを提供します。
概要
すべてのエンドポイントは同じ外枠を共有し、変わるのは model と input フィールドだけです。モデルマーケットの playground から任意に実行できます。
認証
/api-keys で API キーを作成し、Bearer トークンとして送信します。ログイン中のブラウザからのリクエストはセッション cookie 経由でも動作します。
Authorization: Bearer <YOUR_API_KEY>タスクの作成
POST https://97ai.97claude.com/api/generateボディ:{ "model": "<slug>", "input": { … } }
レスポンス:{ "taskId": "<id>", "state": "waiting" }
結果の照会
GET https://97ai.97claude.com/api/generate/<taskId>レスポンス:{ "taskId", "state": "waiting" | "success" | "fail", "resultUrls": [ … ], "creditsConsumed", "failMsg", "balance" }
state が success または fail になるまでこのエンドポイントをポーリングしてください。失敗したタスクは課金されません。エンドポイント
| モデル | タスク | model slug |
|---|---|---|
| Seedream | Text to Image | seedream/seedream |
| Seedream V4 | Text to Image | seedream/seedream-v4-text-to-image |
| Seedream V4 Edit | Image Editing | seedream/seedream-v4-edit |
| Seedream 4.5 | Text to Image | seedream/4-5-text-to-image |
| Seedream 4.5 Edit | Image Editing | seedream/4-5-edit |
| Seedream 5 Lite | Text to Image | seedream/5-lite-text-to-image |
| Seedream 5 Lite | Image to Image | seedream/5-lite-image-to-image |
| Seedream 5 Pro | Text to Image | seedream/5-pro-text-to-image |
| Seedream 5 Pro | Image to Image | seedream/5-pro-image-to-image |
| Seedream V3 | Text to Image | seedream/seedream-v3 |
Seedream · Text to Image
seedream/seedreampromptstring必須Text prompt describing the desired output.
aspect_ratiostring任意Output aspect ratio, e.g. "1:1", "16:9".
curl -X POST https://97ai.97claude.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream/seedream",
"input": { "prompt": "a red panda", "aspect_ratio": "1:1" }
}'Seedream V4 · Text to Image
seedream/seedream-v4-text-to-imagepromptstring必須Text prompt describing the desired output.
aspect_ratiostring任意Output aspect ratio, e.g. "1:1", "16:9".
curl -X POST https://97ai.97claude.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream/seedream-v4-text-to-image",
"input": { "prompt": "a red panda", "aspect_ratio": "1:1" }
}'Seedream V4 Edit · Image Editing
seedream/seedream-v4-editpromptstring必須Text prompt describing the desired output.
image_urlsstring[]必須One or more source image URLs to condition on.
curl -X POST https://97ai.97claude.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream/seedream-v4-edit",
"input": { "prompt": "a red panda", "image_urls": ["https://example.com/in.jpg"] }
}'Seedream 4.5 · Text to Image
seedream/4-5-text-to-imagepromptstring必須Text prompt describing the desired output.
aspect_ratiostring任意Output aspect ratio, e.g. "1:1", "16:9".
curl -X POST https://97ai.97claude.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream/4-5-text-to-image",
"input": { "prompt": "a red panda", "aspect_ratio": "1:1" }
}'Seedream 4.5 Edit · Image Editing
seedream/4-5-editpromptstring必須Text prompt describing the desired output.
image_urlsstring[]必須One or more source image URLs to condition on.
curl -X POST https://97ai.97claude.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream/4-5-edit",
"input": { "prompt": "a red panda", "image_urls": ["https://example.com/in.jpg"] }
}'Seedream 5 Lite · Text to Image
seedream/5-lite-text-to-imagepromptstring必須Text prompt describing the desired output.
aspect_ratiostring任意Output aspect ratio, e.g. "1:1", "16:9".
curl -X POST https://97ai.97claude.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream/5-lite-text-to-image",
"input": { "prompt": "a red panda", "aspect_ratio": "1:1" }
}'Seedream 5 Lite · Image to Image
seedream/5-lite-image-to-imagepromptstring必須Text prompt describing the desired output.
image_urlsstring[]必須One or more source image URLs to condition on.
curl -X POST https://97ai.97claude.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream/5-lite-image-to-image",
"input": { "prompt": "a red panda", "image_urls": ["https://example.com/in.jpg"] }
}'Seedream 5 Pro · Text to Image
seedream/5-pro-text-to-imagepromptstring必須Text prompt describing the desired output.
aspect_ratiostring任意Output aspect ratio, e.g. "1:1", "16:9".
curl -X POST https://97ai.97claude.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream/5-pro-text-to-image",
"input": { "prompt": "a red panda", "aspect_ratio": "1:1" }
}'Seedream 5 Pro · Image to Image
seedream/5-pro-image-to-imagepromptstring必須Text prompt describing the desired output.
image_urlsstring[]必須One or more source image URLs to condition on.
curl -X POST https://97ai.97claude.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream/5-pro-image-to-image",
"input": { "prompt": "a red panda", "image_urls": ["https://example.com/in.jpg"] }
}'Seedream V3 · Text to Image
seedream/seedream-v3promptstring必須Text prompt describing the desired output.
aspect_ratiostring任意Output aspect ratio, e.g. "1:1", "16:9".
curl -X POST https://97ai.97claude.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream/seedream-v3",
"input": { "prompt": "a red panda", "aspect_ratio": "1:1" }
}'