Make a request
Image generation uses the OpenAI-style Images endpoint:YOUR_IMAGE_MODEL_ID with the exact image-capable model ID visible to your current group in the Model Marketplace.
Parameters and results
Supported size, quality, image count, and response format vary by model. Send optional parameters such assize, quality, n, or response_format only when the Model Marketplace or API guide states they are supported.
Image results are usually returned in the data array. Whether a result is a URL or Base64 data, and how many images can be generated per request, depends on the selected model and its actual response.
Waiting time and timeouts
The public/v1/images/generations endpoint is a synchronous HTTP request path: the client should wait for the result of this request. new-api rc4 does not provide a unified task-ID and polling API for generic image generation, and response formats can still differ by upstream provider.
- Image generation can take tens of seconds or longer. A short timeout in a client, corporate proxy, or browser extension can fail before the upstream responds.
- Do not submit the same image task repeatedly before confirming the outcome; this can cause duplicate images and duplicate charges.
- For
504,524, or client timeouts, save the Request ID and time, then contact support for verification. Do not assume the task definitely succeeded or definitely did not run.
Common issues
When asking for help, provide the model name, Request ID, time, redacted request parameters, and full error text. Never provide your complete API Key.
