curl --request POST \ --url https://api.ruxa.ai/api/v1/tasks/create \ --header 'Authorization: Bearer sk-xxxxxx' \ --header 'Content-Type: application/json' \ --data '{ "callBackUrl": "https://your-domain.com/api/callback", "input": { "prompt": "A hyper-realistic tweet posted by Einstein right after completing the theory of relativity.", "output_format": "png", "image_size": "1:1" }, "model": "google/nano-banana" }'
Image generation model API based on Gemini 2.5 Flash Image
POST
https://api.ruxa.ai
/
api
/
v1
/
tasks
/
create
Copy
curl --request POST \ --url https://api.ruxa.ai/api/v1/tasks/create \ --header 'Authorization: Bearer sk-xxxxxx' \ --header 'Content-Type: application/json' \ --data '{ "callBackUrl": "https://your-domain.com/api/callback", "input": { "prompt": "A hyper-realistic tweet posted by Einstein right after completing the theory of relativity.", "output_format": "png", "image_size": "1:1" }, "model": "google/nano-banana" }'
In production environments, it is recommended to use the callBackUrl
parameter to receive automatic notifications when generation is complete,
rather than polling the status endpoint.
curl --request POST \ --url https://api.ruxa.ai/api/v1/tasks/create \ --header 'Authorization: Bearer sk-xxxxxx' \ --header 'Content-Type: application/json' \ --data '{ "callBackUrl": "https://your-domain.com/api/callback", "input": { "prompt": "A hyper-realistic tweet posted by Einstein right after completing the theory of relativity.", "output_format": "png", "image_size": "1:1" }, "model": "google/nano-banana" }'