GPT Image 2 Per-Call Image Generation
Gemini Per-Call Image Generation
CCAPI Image Upscale
Z-Image Turbo

Generate or Upscale Image

Unified OpenAI-compatible image endpoint. Choose the matching oneOf request schema branch for GPT Image 2, Gemini nano-banana, Z-Image Turbo, or CCAPI Upscale based on the model value.

Scalar may list this operation under multiple image provider groups, but they all point to the same real callable route: POST /v1/images/generations.

post/v1/images/generations

Request

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

Request body

OR
OR
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

Image generated successfully

createdinteger required

Generation timestamp.

Changes

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