AI Image

Image generation overview — one unified endpoint, multiple models

All image models share one endpointPOST /api/v2/image/generate — and differ only by the model field. Text-to-image or reference-guided. Async task; poll for status after submitting.

Base URL: https://api.aiclonevoicefree.comAuth: Authorization: Bearer sk_...

Models

Modelmodel idBest forRef imagesBilling
GPT Imagegpt-image-2 (default)Photoreal, prompt-faithful, image editup to 43 credits / image
Gemini Flash Imagegemini-3.1-flash-image-previewFast, multi-reference compositingup to 143 credits / image

Both are flat 3 video credits per image (independent of size / reference images; n is fixed to 1).

Shared request

FieldTypeRequiredNotes
promptstringText prompt
modelstringOne of the model ids above, default gpt-image-2
sizestringAspect/size, default 1:1 (e.g. 1:1 / 16:9 / 9:16)
image_urlsstring[]Reference images (image-to-image / edit)
seedintRandom seed
curl -X POST https://api.aiclonevoicefree.com/api/v2/image/generate \
  -H "Authorization: Bearer sk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{ "prompt": "a corgi under cherry blossoms, cinematic", "model": "gpt-image-2", "size": "16:9" }'

Response 202

{ "task_id": "xxxxxxxx", "status": "pending", "capability": "image", "action": "generate", "model": "gpt-image-2" }

Getting the result

Poll GET /api/v2/tasks/{task_id}; when done:

{
  "status": "completed",
  "capability": "image",
  "_type": "image.generate",
  "imageUrl": "https://.../result.png"
}

See Tasks for polling cadence and the unified response format. Insufficient credits → 402 (with required / balance) at submit; auto-refunded on failure.

On this page