Model parameters
- Model ID:
hy-image-v3.5-preview - Pricing: Check the model details page for current prices.
- Endpoint:
https://geekai.co/api/v1/images/generations - Parameters: See the Image API reference.
- Authentication: Get an API key.
The following common Image API parameters are not supported:
enhance_promptnegative_promptstrengthqualityaspect_ratiostyle_presetnresponse_formatoutput_formatmaskbackground
prompt and image instead of the official messages to supply the prompt and one or more reference images. Reference requirements:
- Pass an image URL or Base64-encoded data. Supported formats: PNG, JPEG, and JPG.
- URLs must be publicly accessible. For the mainland China version, use a URL accessible from mainland China; otherwise, use Base64.
- Each image must be no larger than 20 MB.
- Up to 20 reference images.
size to set the output dimensions and resolution. Limits for size:
- Width and height must both be positive integers between 256 and 8192 inclusive.
- Width × height must not exceed 16,777,216 pixels, supporting up to 4096×4096 (4K).
generate_max_pixels and resize_max_pixels parameters are not supported. Use size to control the output dimensions.
Text-to-image generation
Generate an image from a text description:Image-to-image generation
Single image Pass a reference image inimage for image-to-image generation:
image:
For long-running requests, set
async to true to enable asynchronous processing. The endpoint returns a task_id. Poll https://geekai.co/api/v1/images/{task_id} for the latest status and retrieve the final image URL when the task completes. See Asynchronous image generation.