Visual workshop
For creators who make images. How to pick an image or video model, draw in Cherry Studio, generate images and videos in bulk through the API, and how billing works.
One CodaAPI key gives you image models from several providers. This page is for creators. It covers how to pick a model, how to draw in a desktop client, how to generate through the API, and how the cost is worked out.
For a graphical app, see the status and instructions of Image Studio. The methods below use the API and desktop clients.
Image and video models
Models come and go with the back-end configuration. The table below lists only the kinds available when this page was written. For the full list, use Model Square, where you can filter by endpoint type. Image models are spread across several groups, and to use a model you create your key in a group that includes it (the models section of each endpoint page below lists the groups; for which group to pick, see Groups).
| Category | Example models | What it can do | How to call |
|---|---|---|---|
| OpenAI gpt-image | gpt-image-2, gpt-image-2.6-flare, gpt-image-2-client |
Generate from a text description, plus animated GIFs and SVG vector images on the 2.6 series; change uploaded reference images, with a mask to mark the area to change | gpt-image generation and editing |
| Gemini images (Nano Banana) | gemini-3.1-flash-image, gemini-3-pro-image, gemini-nano-banana-2.1 |
Generate from a text description, with a chosen aspect ratio and resolution (up to 4K); change reference images; edit conversationally over several turns | Nano Banana |
| xAI Grok Imagine | grok-imagine-image, grok-imagine-image-2.0 |
Generate from a text description, with a chosen ratio and resolution level; change or combine 1 to 5 reference images | Grok Imagine |
| Video | grok-imagine-video-1.5-480p, grok-imagine-video-1.5-720p, grok-imagine-video-1.5-1080p and others |
Text-to-video, first-frame image-to-video and video from reference images, up to 15 seconds; asynchronous tasks | Grok Imagine video, or Generate a video below |
A few tips for picking a model:
- Try your prompt on a cheap, fast model first, then switch to a higher-quality model for the final version.
- The same prompt can look very different on different models, so try two or three.
- For portraits of people, brand logos and copyrighted characters, each provider's models have their own restrictions, and the upstream may reject the request.
Draw in Cherry Studio
Not tested: the steps follow the official Cherry Studio documentation (November 2026) and haven't been tested on CodaAPI yet. The interface is whatever your installed version shows.
Cherry Studio is a desktop AI client. Its Paintings page can draw with an OpenAI-compatible image endpoint.
- First add the CodaAPI provider as described on the Cherry Studio page. The key you use must be in a group that includes image models.
- Under that provider, add an image model manually, for example
gpt-image-1.5, and set the model's Endpoint Type to Image Generation (OpenAI). - Open the Paintings page on the left, choose the CodaAPI provider and the model you just added, and enter a prompt to start generating.
Generate through the API
For bulk generation, or to build image generation into your own tools, the API is more convenient. The image endpoints are all synchronous: the image comes back in the response once it's ready. Video is an asynchronous task: you submit it, then check it and download the result. Each provider's models use different endpoints. For complete examples (generate, edit, save to a file), see:
- gpt-image models: gpt-image generation and editing,
POST /v1/images/generationsandPOST /v1/images/edits - Gemini image models: Nano Banana, the native Gemini
generateContent, or the OpenAI-format chat endpoint - Grok Imagine: Grok Imagine,
POST /v1/images/generationsandPOST /v1/images/edits(with a JSON body) - Grok video: Grok Imagine video,
POST /v1/videosto submit andGET /v1/videos/{task id}to check
The model and charge of each image request are in the console under General → Usage Logs (open it directly). Like the chat endpoints, the synchronous image endpoints don't store request or response content (see Data and privacy).
Generate a video
The video models are in the Grok-官转 group, and the last part of a model's name is its resolution (-480p, -720p, -1080p). Generating a video takes three steps:
-
Submit a task: describe what happens on screen, the length (
seconds, as a string) and the ratio; theidin the response is the task ID. To use an image as the first frame, addinput_reference(an image URL or a data URL).curl https://codaapi.com/v1/videos \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "grok-imagine-video-1.5-720p", "prompt": "Steam slowly rising from a cup of coffee, light rain outside the window, the camera slowly pushing in", "seconds": "6", "aspect_ratio": "16:9", "resolution": "720p" }' -
Check progress: check every 5 to 10 seconds (replace
TASK_IDwith theidfrom the previous step).statusgoes throughqueuedandin_progress, and ends ascompletedorfailed.curl https://codaapi.com/v1/videos/$TASK_ID \ -H "Authorization: Bearer $OPENAI_API_KEY" -
Download the video: when
statusiscompleted, thevideo_urlin the response is the address of the MP4 file; download and save it soon (replaceVIDEO_URLwith that address).curl -L "$VIDEO_URL" -o coffee.mp4
For every parameter, reference images, and complete polling examples in Python and Node.js, see Grok Imagine video. The status, result and charge of video tasks are in the console under Task Logs (open it directly); asynchronous tasks like these store the submitted content and the task result so you can check their progress.
How the cost is worked out
Image and video models aren't billed in one uniform way. Model Square marks each model as Per Request or Token-based:
- Per Request: a fixed price per request, for example the gpt-image models with
-client, the Gemini image models without-token, Grok Imagine, and the video models above. For per-request models on/v1/images/generationsand/v1/images/edits, each image generated in one request counts as one request. Video is priced per task, some models are also multiplied by a factor for parameters such as the length, and a failed task is refunded. - Token-based: priced by input and output tokens, like chat models, for example the gpt-image models without
-clientand the Gemini image models with-token. The size and quality of the image affect the number of output tokens.
Specific prices aren't listed in this documentation. Model Square and the price list are authoritative, and for the rules see Pricing and multipliers.