將強大的 AI 生成能力整合到您的應用中。透過簡單的 REST API 呼叫,以程式化方式生成圖片、影片和音樂。
告訴我們您的使用場景,我們將為您開通 API 權限。
透過統一的 API 存取 Seedream、GPT Image、Veo 等多種 AI 模型。
RESTful API,Bearer 令牌認證,只需兩個端點即可快速上手。
無月度最低消費,使用靈活的積分系統,按實際生成量付費。
提交生成任務後輪詢結果,支援自動重試和狀態追蹤,適合生產環境。
| 1 | curl -X POST https://seedream4-5.me/api/v1/generate \ |
| 2 | -H "Authorization: Bearer sk-xxxxx" \ |
| 3 | -H "Content-Type: application/json" \ |
| 4 | -d '{ |
| 5 | "mediaType": "image", |
| 6 | "model": "seedream-4-5", |
| 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://seedream4-5.me/api/v1/task/{taskId}?refresh=1 \ |
| 19 | -H "Authorization: Bearer sk-xxxxx" |