用途
用于根据文本提示词生成图片。请求
- Method:
POST - URL:
https://api.hubto.ai/v1/images/generations - Auth:
Authorization: Bearer YOUR_API_KEY - Content-Type:
application/json
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
图片生成接口。
POSThttps://api.hubto.ai/v1/images/generationsAuthorization: Bearer YOUR_API_KEYapplication/json{
"model": "gpt-image-1",
"prompt": "一张未来感的 AI 控制台界面"
}
curl https://api.hubto.ai/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "gpt-image-1",
"prompt": "一张未来感的 AI 控制台界面"
}'