Integrate powerful AI generation capabilities into your applications. Generate images, videos, and music programmatically with simple REST API calls.
Tell us about your use case and we will set up your API access.
Access a wide range of AI models including Nano Banana, Seedream, GPT Image, Veo and more through a single unified API.
RESTful API with Bearer token authentication. Get started in minutes with just two endpoints.
No monthly minimums. Only pay for what you generate using our flexible credit system.
Submit generation tasks and poll for results. Built for production workloads with automatic retries and status tracking.
| 1 | curl -X POST https://piooy.com/api/v1/generate \ |
| 2 | -H "Authorization: Bearer sk-xxxxx" \ |
| 3 | -H "Content-Type: application/json" \ |
| 4 | -d '{ |
| 5 | "mediaType": "image", |
| 6 | "model": "nano-banana-2", |
| 7 | "prompt": "a cute cat sitting on a cloud", |
| 8 | "scene": "text-to-image", |
| 9 | "options": { |
| 10 | "aspect_ratio": "1:1", |
| 11 | "resolution": "2K" |
| 12 | } |
| 13 | }' |
| 14 | |
| 15 | # Response: |
| 16 | # { "code": 0, "data": { "taskId": "xxx-xxx" } } |
| 17 | |
| 18 | curl https://piooy.com/api/v1/task/{taskId}?refresh=1 \ |
| 19 | -H "Authorization: Bearer sk-xxxxx" |