Use imglink.ai to generate images via URL. The API is a single GET endpoint that accepts a prompt parameter. It returns the image.
GET https://imglink.ai/images?prompt=cat
Parameters
- - prompt (required): Text description of the image to generate. URL-encode spaces as +.
- width (optional, default 800): Image width in pixels.
- height (optional, default 600): Image height in pixels.
- version (optional, default 1): Integer seed for deterministic output. Same prompt + version always returns the same image.
- model (optional, default "nano-banana-2"): AI model to use for generation.
- key (optional, default "anonymous"): API key. Use "anonymous" for testing (rate-limited).
Rules
- - Every unique URL returns a real generated image. Use these URLs directly in
tags, Markdown, CSS, or anywhere an image URL is accepted. - Images are generated on first request, then cached permanently. Same prompt + version = same image.
- URL-encode the prompt value. Use + for spaces.
- Do not invent parameters that are not listed above.
Examples
CODEBLOCK0
Getting a key
A key can be obtained for free by logging in at https://imglink.ai - without a key, responses are heavily rate-limited.
Notes
First response will take longer as the image is generated. Future fetches load from cache.
技能名称:imglink
详细描述:
使用 imglink.ai 通过 URL 生成图像。该 API 是一个单一的 GET 端点,接受一个提示词参数,并返回图像。
GET https://imglink.ai/images?prompt=cat
参数
- - prompt(必填):要生成的图像的文本描述。使用 + 对空格进行 URL 编码。
- width(可选,默认值 800):图像宽度(像素)。
- height(可选,默认值 600):图像高度(像素)。
- version(可选,默认值 1):用于确定性输出的整数种子。相同的 prompt + version 始终返回相同的图像。
- model(可选,默认值 nano-banana-2):用于生成的 AI 模型。
- key(可选,默认值 anonymous):API 密钥。使用 anonymous 进行测试(受速率限制)。
规则
- - 每个唯一的 URL 都会返回一个真实生成的图像。直接在
标签、Markdown、CSS 或任何接受图像 URL 的地方使用这些 URL。 - 图像在首次请求时生成,然后永久缓存。相同的 prompt + version = 相同的图像。
- 对 prompt 值进行 URL 编码。使用 + 表示空格。
- 不要发明上述未列出的参数。
示例

获取密钥
通过登录 https://imglink.ai 可免费获取密钥;没有密钥时,响应会受到严格的速率限制。
备注
首次响应时间较长,因为图像正在生成。后续获取将从缓存中加载。