POST https://api.highwayapi.ai/v3/nano-banana-pro-light-t2i
文生图
接口地址
请求头
Bearer 身份验证格式,例如:Bearer \{\{API 密钥\}\}
请求体
生成图像的大小。可选值:1x1, 2x3, 3x2, 3x4, 4x3, 4x5, 5x4, 9x16, 16x9, 21x9
返回生成的图像的格式。可选值:url, b64_json
响应
生成的图像列表。
图像 URL(当 response_format 为 url 时)。
Base64 编码的图像数据(当 response_format 为 b64_json 时)。
图生图
接口地址
请求头
Bearer 身份验证格式,例如:Bearer \{\{API 密钥\}\}
请求体
生成图像的大小。可选值:1x1, 2x3, 3x2, 3x4, 4x3, 4x5, 5x4, 9x16, 16x9, 21x9
返回生成的图像的格式。可选值:url, b64_json
响应
生成的图像列表。
图像 URL(当 response_format 为 url 时)。
Base64 编码的图像数据(当 response_format 为 b64_json 时)。