Generated image
Output image pixels ≤ 2097152
Generate images with seedream-5.0-pro through the APINEED asynchronous media API.
Submit a task, save its ID, and poll the task endpoint for its status and result URLs.
Generate with seedream-5.0-pro, review the output, and use the same request shape in your application.
{
"model": "seedream-5.0-pro",
"workflow": "text_to_image",
"input": {
"prompt": "A refined product photograph with natural lighting, realistic materials and a clean background."
},
"output": {
"count": 1
}
}Pay as you go. Current selling prices in USD.
Output image pixels ≤ 2097152
Output image pixels > 2097152
Output image pixels ≤ 2097152
Output image pixels > 2097152
Call seedream-5.0-pro with the endpoint and request format shown below.
Store your APINEED key server-side as API_NEED_API_KEY.
export API_NEED_API_KEY=sk-apineed-v1-...Use seedream-5.0-pro with POST /v1/media/generations.
curl https://apineed.com/v1/media/generations \
-H "Authorization: Bearer $API_NEED_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream-5.0-pro",
"workflow": "text_to_image",
"input": {
"prompt": "A refined product photograph with natural lighting, realistic materials and a clean background."
},
"output": {
"count": 1
}
}'Save id, then poll GET /v1/media/generations/{id} every few seconds until the task is succeeded or failed.
curl https://apineed.com/v1/media/generations/$TASK_ID -H "Authorization: Bearer $API_NEED_API_KEY"const images = task.outputs.filter((item) => item.type === "image").map((item) => item.url);Create an asynchronous image task, then use its task ID to retrieve status and direct object-storage output URLs.
/v1/media/generations/v1/media/generations/{id}Use the supported parameters below. Leave optional fields out to use the service defaults.
| Name | Type | Values | Description |
|---|---|---|---|
model | string | Required | Use seedream-5.0-pro. |
workflow | string | text_to_image, image_edit | Use an APINEED-supported workflow. |
input.prompt | string | Required | Describe the requested image. |
input.assets | array | Required for image_edit | Image URLs with role input_image; up to 1 references. |
Practical answers for choosing, integrating, pricing, and operating the seedream-5.0-pro API on APINEED.
Use seedream-5.0-pro, exactly as returned by the API Need pricing API.
Send a POST request to /v1/media/generations using your APINEED API key. Save the returned task ID, then poll GET /v1/media/generations/{id} until the task succeeds or fails. Follow the request example and parameter table on this page.
See Pricing for the current rates and discounts. Final charges use recorded usage.
Connect seedream-5.0-pro to your application through the APINEED media API.
Add APINEED credits before submitting a billable generation.
Create and securely store an APINEED API key.
Send seedream-5.0-pro requests to /v1/media/generations.
Poll the returned task ID and store the completed image URL from outputs[].