メインコンテンツへスキップ
POST
/
generate
/
k
/
imagen4-fast
Imagen4-Fast 画像生成
curl --request POST \
  --url https://api.sinancode.com/v1/generate/k/imagen4-fast \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "a serene mountain landscape",
  "aspect_ratio": "16:9",
  "negative_prompt": "blurry, low quality",
  "num_images": 1,
  "seed": 0
}
'
{
  "task_id": "01234567-89ab-cdef-0123-456789abcdef"
}
Google DeepMind の Imagen 4 Fast モデルを使用して高速に画像を生成します。 主な特徴:
  • 高速生成 - 標準 Imagen 4 より高速な生成
  • 効率的 - 低レイテンシーアプリケーションに最適化

承認

Authorization
string
header
必須

API トークンを使用して認証してください

ボディ

application/json

タスクパラメータ

prompt
string
必須

プロンプト(必須、最大5000文字)

Required string length: 1 - 5000
:

"a serene mountain landscape"

aspect_ratio
enum<string>
デフォルト:16:9

アスペクト比(任意、デフォルト 16:9)

利用可能なオプション:
1:1,
16:9,
9:16,
3:4,
4:3
:

"16:9"

negative_prompt
string

ネガティブプロンプト(任意)

:

"blurry, low quality"

num_images
integer
デフォルト:1

生成画像数(任意、1-4枚、デフォルト1)

必須範囲: 1 <= x <= 4
:

1

seed
integer

ランダムシード(任意、整数型)

:

0

レスポンス

OK

task_id
string
必須

Task ID

:

"01234567-89ab-cdef-0123-456789abcdef"