Image
This quickstart walks you through generating your first image with Siraya Model Router.
Image generation
curl https://llm.siraya.ai/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: <API_KEY>" \
-d '{
"model": "imagen-4.0-generate-001",
"prompt": "A cute baby sea otter",
}'
- https://llm.siraya.ai/v1/images/generations is the base URL
<API_KEY>is your API Key generated in API page.modelis the model name, such asgpt-image-1, available model list can be access in Model page.promptis the prompt.nis the number of images to generate, default value is1.
b64_jsonurl
Example response