Model parameters
- Model ID:
hy-image-v3 - 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:
negative_promptstrengthqualityaspect_ratiostyle_presetnresponse_formatoutput_formatmaskbackground
image instead of the official images to pass one or more reference images:
- 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 10 MB.
- Up to 3 reference images.
size to set the output dimensions and resolution. Limits for size:
- Both width and height must be between 512 and 2048 pixels inclusive.
- Width × height must not exceed 1024×1024 pixels.
enhance_prompt instead of the official revise to enhance image prompts automatically.
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.