ccapi-ai CCAPI Image Upscale API
Upscale an input image by x2 via CCAPI's OpenAI Images-compatible API. The public model name is `ccapi-upscale-v1`. --- ## Endpoint Use `POST /v1/images/generations` as the unified image endpoint. This is a synchronous API. A successful request returns the upscaled image directly in the OpenAI Images response format; no task polling is required. --- ## Authentication Use `Authorization: Bearer `. --- ## Supported Model | Model Name | Capability | Billing | |---|---|---| | `ccapi-upscale-v1` | x2 image super-resolution / upscale | Per call | --- ## Request Format Uses the OpenAI Images-compatible format with an upscale-specific `image` input: - `model`: `ccapi-upscale-v1` - `image`: required. A single image URL, a single raw base64 string, a `data:image/...;base64,...` string, or a one-item string array. - `response_format`: optional. `url` by default; use `b64_json` to request base64 output. - `model_quality`: optional upstream quality hint. Default: `MQ`. - `result_format`: optional upstream output format. Default: `0`. - `jpg_quality`: optional JPEG quality. Default: `95`. - `return_url`: optional explicit upstream URL-return flag. Defaults from `response_format == "url"`. Only one input image is supported in the first version. Multiple images are rejected. Use this model only for source images up to 1K: both width and height must be between 256 and 1024 px, and the file must be no larger than 5 MB. If either side is greater than 1024 px, use `gpt-image-2` directly. --- ## Pricing Visit the [Pricing page](/pricing?vendor=字节跳动) to see full model pricing for this provider.