メインコンテンツへスキップ
POST
/
image
/
create
画像の作成
curl --request POST \
  --url https://api.example.com/image/create \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "project_id": "<string>",
  "inputs": {
    "model": "<string>",
    "prompt": "<string>",
    "n": 123
  },
  "wb_user_id": "<string>",
  "track_llm_call": true
}
'
{
  "response": {},
  "weave_call_id": "<string>"
}

承認

Authorization
string
header
必須

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

ボディ

application/json
project_id
string
必須
inputs
ImageGenerationRequestInputs · object
必須
wb_user_id
string | null

直接設定しないでください。サーバー側でこのフィールドが自動的に設定されます。

track_llm_call
boolean | null
デフォルト:true

この画像生成呼び出しを trace サーバー上でトラッキングするかどうかを指定します。

レスポンス

成功レスポンス

response
Response · object
必須
weave_call_id
string | null