Endpointy
| Metoda | Endpoint | Opis |
|---|---|---|
| POST | /api/v1/generateTask/seedream-4-5 | Utwórz zadanie generowania |
| GET | /api/v1/statusTask/seedream-4-5 | Sprawdź status zadania |
Uwierzytelnianie
Wszystkie żądania wymagają klucza API w nagłówku:Treść żądania
Parametry
async (polling) or callback (webhook)
Callback URL, required when request_type=callback (conditional)
Routing strategy: auto, value, or official
Model input parameters
text-to-image— Generate from text descriptionimage-to-image— Generate with reference images
disabled— Generate independent images, no relation between themauto— Model decides whether to generate sequential/related images based onmax_images
Przykład
Text-to-ImageOdpowiedź
POST /api/v1/generateTask/seedream-4-5
ReturnstaskId on success for subsequent status queries.
Success:
GET /api/v1/statusTask/seedream-4-5
Query task execution status and results viataskId.
Pola odpowiedzi statusu
Unique task identifier.
Current task state:
pending, processing, success, or failed.JSON string containing
resultUrls array. Only present on success. Parse with JSON.parse().Error code. Only present when
state is failed. See Kody błędów.Human-readable error message. Only present when
state is failed.Task creation timestamp (Unix milliseconds).
Task completion timestamp (Unix milliseconds).
Processing duration in milliseconds.
Kody błędów
| Code | Description |
|---|---|
| 400 | Invalid parameters or request error |
| 401 | Invalid or missing API Key |
| 429 | Rate limit exceeded |
| Fail Code | Description |
|---|---|
CONTENT_VIOLATION | Content violates safety guidelines |
INVALID_IMAGE_URL | Cannot access provided image URL |
Limity rate
| Limit | Value |
|---|---|
| Requests | 10000 / minute |
| Concurrent tasks | 1000 |
429 error. Wait and retry.
Wskazówki
- Generation time:
- 2K resolution: ~25-35 seconds
- 4K resolution: ~40-55 seconds
- Submit task, wait 20 seconds, then poll every 3 seconds
- Callback mode: For high-concurrency or high-resolution generation, use
callbackmode. - Image expiration: Result URLs are valid for 15 days. Download and store important outputs promptly.
- Content moderation: Prompts must comply with content safety guidelines. Violations return
CONTENT_VIOLATION. - High resolution: Supports up to 4K output, ideal for high-quality printing and professional use.
- Batch generation:
max_imagessupports 1-10, generate multiple candidates at once, billed per image. - Sequential images:
disabled: Generate independent images, no relationauto: Intelligently generate sequential images with continuity and coherence- Sequential mode is ideal for storyboards, comic panels, etc.
- Multiple reference fusion:
image-to-imagemode supports up to 14 reference images- Model intelligently combines style, composition, and color
- More references = richer fusion effects
- Resolution selection:
2K: Balanced quality and speed, for most scenarios4K: Highest quality, for professional creation and printing
- Aspect ratio suggestions:
16:9/21:9: Landscape, for banners and desktop wallpapers9:16: Portrait, for mobile wallpapers and short video covers1:1: Square, for social media
- Image formats:
image_urlssupports JPG, PNG, WebP, max 10MB per image.