GET to obtain image URLs valid for 24 hours. Ideal for time-consuming 2K / 4K high-resolution generation.
Prerequisite: Object Storage (required)
Async image tasks require configured object storage (S3 or AliOSS) to upload generated images and return 24-hour signed URLs. Without it, the API returnserror.code=storage_not_configured.
Endpoints
Base URL:
https://api.gregapi.com
Authentication
Task ID format
- Format:
image_<ULID>, e.g.image_01KCRVET35FAVZME1CEEED9VBS task_idis an alias, equal toid
Text-to-image: Create task
Text-to-image: Query result
Completed response:Edit: Create task
Request style: multipart/form-dataTask Status
Polling Strategy
interval: 3–10 secondstimeout: 5–15 minutes (depends on server load and resolution)