Endpoints
Generate images
Generate images from a text prompt with POST /v1/images/generations.
POST
生成图像
Generate a new image from a text prompt. Available sizes, image counts, and response formats depend on the selected model.
The snippets below are complete requests. Set
HILINKUP_API_KEY to your real key first, and replace model with an image model ID returned by GET /v1/models.Request parameters
string
required
An image-capable model ID. Use
GET /v1/models to list current values.string
required
A text description of the target image.
integer
default:"1"
Number of images to generate. Some models only support
1.string
Image size, for example
1024x1024. Valid values depend on the model.Request examples
Response
integer
Unix timestamp of the generation result.
array
List of image results. Each item contains
url or b64_json.The response may return a temporary URL or Base64 data, usually in a
b64_json field. Download and store the result before the URL expires.Saving the result
Next steps
To modify an existing image instead, use Edit images.Authorizations
在控制台创建的 API Key,格式为 Authorization: Bearer HILINKUP_API_KEY。
Body
application/json
Last modified on October 8, 2026