cURL
curl --request POST \ --url https://api.siray.ai/v1/images/generations/async \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "aspect_ratio": "1:1", "model": "black-forest-labs/flux-kontext-t2i-pro", "prompt": "example_value" } '
{ "code": "success", "data": { "task_id": "<string>" }, "message": "<string>" }
Generate an image using the Flux Kontext t2i Pro model
Bearer authentication using API key
Request payload
Request format for image generation models
Model name to use for the request
black-forest-labs/flux-kontext-t2i-pro
Aspect ratio
1:1
16:9
9:16
4:3
3:4
3:2
2:3
4:5
5:4
21:9
9:21
2:1
1:2
Successful response
Standard async task creation response
Status code returned by the service
"success"
Response payload containing task details
Show child attributes
Additional information about the request result