GPT Image 2 Per-Call Image Generation
Midjourney Imagine API

Submit Async Image Task

Unified asynchronous image generation endpoint. Choose the matching request schema branch based on model, such as GPT Image 2 or Midjourney Imagine.

The response immediately returns a task_id; poll GET /v1/images/tasks/{task_id} for status and results.

post/v1/images/generations/async

Request

  • Base URL: https://api.ccapi.ai
  • URL: https://api.ccapi.ai/v1/images/generations/async
  • Auth: HTTP bearer

Request body

OR

Example request

{
  "image": "https://example.com/photo.jpg",
  "model": "gpt-image-2",
  "prompt": "A serene mountain landscape at sunset with vibrant orange and purple skies"
}

Response

Task accepted; poll for the result

codestring required
messagestring

Example response

{
  "code": "success",
  "data": {
    "model": "gpt-image-2",
    "status": "queued"
  },
  "message": "submitted"
}

Changes

No recorded changes to this operation across all 1 revision of this API.