Skip to main content
POST
/
image
/
create
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>"
}

Authorizations

Authorization
string
header
required

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

Body

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

Do not set directly. Server will automatically populate this field.

track_llm_call
boolean | null
default:true

Whether to track this image generation call in the trace server

Response

Successful Response

response
Response · object
required
weave_call_id
string | null