ccapi-ai GPT Image 2 Per-Call Image Generation API
Access GPT Image 2 via CCAPI's OpenAI Images-compatible API. --- ## What This Document Covers This document corresponds to the **per-call billing version**, using `POST /v1/images/generations` as the unified endpoint. ## Endpoint Use `POST /v1/images/generations` as the unified endpoint. This endpoint behaves **synchronously** by default: submit a task and receive the generated image directly in the response (after internal polling, up to ~60s). No task ID or manual polling is required. ## Authentication Use `Authorization: Bearer `. ## Response Characteristics - Response structure follows the OpenAI Images style - The platform returns image URLs by default - The platform normalizes and hosts image results uniformly via Bunny CDN ## Supported Models | Model Name | Description | Pricing | |---|---|---| | `gpt-image-2` | GPT Image 2, 1080P high quality | $0.211 / image (official) | ## Official Pricing - **gpt-image-2**: $0.211 per 1080P high quality image - CCAPI user price: $0.02 (with gpt-image-A group rate applied) ## Request Format Uses the OpenAI Images-compatible format: - `model`: Use `gpt-image-2` - `prompt`: Text-to-image prompt - `image`: Optional, supports single or multiple reference image inputs for image-to-image and multi-image blending ## Key Field Descriptions ### `model` Use `gpt-image-2` for GPT Image 2 generation. ### `prompt` Text description of the image to generate. ### `image` (optional) - Not provided: text-to-image - Single string: single-image image-to-image - String array: multi-image blending It is recommended to pass publicly accessible image URLs. ### `response_format` (optional) - `url` (default): Returns a CDN URL - `b64_json`: Returns base64-encoded image data ### `size` (optional) Requested image dimensions. Task-based channels translate this value to a supported aspect ratio; exact output pixels are provider-defined and may differ from the request. Omit it to use the platform default. --- ## Response Description - Response structure follows the OpenAI Images style - Synchronous: image is returned directly in the response after internal polling (~60s max) - `data[0].url` — the final accessible image URL (hosted via Bunny CDN) - `data[0].revised_prompt` — the normalized prompt