메인 콘텐츠로 건너뛰기
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