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>"
}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>"
}Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Was this page helpful?