Skip to main content
Key points for AI agents
  • Async (recommended): POST https://1788.love/v1/images/generations/async (text-to-image) or POST https://1788.love/v1/images/edits/async (editing) -> returns { "id": "task_...", "status": "queued" }; poll GET https://1788.love/v1/images/tasks/{id} until status is completed, then download data[0].url. Async avoids HTTP timeout loss during peak load.
  • Sync: POST /v1/images/generations and POST /v1/images/edits are provided for OpenAI-standard SDKs/clients. Routes 5 and 8 are async-only; Route 3 is sync-only (set HTTP timeout >= 2 minutes).
  • Model names and resolution: Model names include only the route (gpt-image-2-route3), not the resolution tier—resolution (1K / 2K / 4K) is determined by size, which must match the size table below (otherwise 400). Legacy suffixed names like gpt-image-2-route3-2k still work if size matches that tier.
  • Reference images depend on route: Routes 1, 2, 4, and 6 use multipart/form-data image file fields; Routes 3, 5, 7, and 8 use JSON image_urls (public HTTPS URLs from Upload media; Route 3 also accepts data:image/png;base64,... data URLs (PNG / JPEG / WebP / GIF), recommended for large reference images to avoid cross-border download timeouts).
  • One image per request (n: 1). Submit concurrent requests for multiple images.
  • Route 5 policy note: Repeated content-policy violations can revoke upstream keys. If you receive content_policy_violation, change the prompt/images—do not retry unchanged.
Strict Content Compliance Policy: Generating pornography, explicit nudity, vulgar material, or politically sensitive / illegal content on any image route is strictly prohibited. Violations detected by automated or manual review will result in immediate permanent suspension of your account and API keys with no refund.

Models and routes

  • Routes 1, 2, 3, and 6 are sync-only (calling async endpoints on Route 3 returns 400).
  • In 2.5/2.6, flare prioritizes speed (daily & batch generation) and sunburst prioritizes quality (detailed generation & editing). On Route 7, auto is HD redraw and eco is native 4K only.
  • 2.6 (Routes 1, 2, 3) also supports animated GIF and SVG vector output via output_format (see below).
  • See the Price List for live per-image pricing.

Size tables

The pixel value in size determines the billing tier (1K / 2K / 4K). Table A and Table B differ only in the 2K column. Table A (Routes 1, 2, 4, 6, 8): Table B (Routes 3, 5, 7):

1. Create a task

Text-to-image:
Image editing with JSON image_urls (Routes 5, 7, 8):
Route 4 editing uses multipart file uploads:

2. Poll task status

Poll GET https://1788.love/v1/images/tasks/{id} every 3–5 seconds (typically finishes in 30 seconds to 3 minutes). Treat completed as done, failed as error (refunded automatically), and keep polling otherwise (Route 8 uses task_id and processing).

3. Download the image

  • Routes 4, 7: data[0].url is a signed URL—download directly without auth headers.
  • Sync Routes 1, 2, 3, 6: data[0].url is a direct CDN URL—do not attach an Authorization header (some CDNs return 403). For Routes 2 and 3, include a standard User-Agent header (e.g. curl/8.5.0) when downloading from scripts.
  • Route 5: Requires Authorization: Bearer YOUR_1788_API_KEY to download; retained for 24 hours.

Sync API (OpenAI-compatible)

Use POST /v1/images/generations (JSON) or POST /v1/images/edits (multipart for Routes 1, 2, 4, 6; JSON image_urls for Routes 3, 7). Route 3 image_urls accepts both public HTTPS URLs and Base64 image data URLs (data:image/png;base64,..., supporting PNG / JPEG / WebP / GIF, up to 16 MB encoded per image)—for large reference images or mainland-hosted URLs, passing a Base64 data URL (or uploading via https://1788.love/v1/uploads/images-2) prevents upstream download timeouts. Set your HTTP client timeout to at least 15 minutes (Route 3 fails and refunds if > 85 s; Routes 4 and 7 time out after 10 minutes with 504 task_timeout—do not immediately resubmit on 504).

GIF and SVG output (2.6 only)

gpt-image-2.6-* models on Routes 1, 2, and 3 support animated GIF and SVG via POST /v1/images/generations at the same price as a static image:
Route 2 does not support SVG at the 4K tier.