Passer au contenu principal
POST
/
image
/
create
Création d'image
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>"
}

Autorisations

Authorization
string
header
requis

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

Corps

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

Ne définissez pas ce champ directement. Le serveur le renseignera automatiquement.

track_llm_call
boolean | null
défaut:true

Indique s'il faut suivre cet appel de génération d'image dans le serveur de traces

Réponse

Réponse réussie

response
Response · object
requis
weave_call_id
string | null