Imagen 4 Development
Official Documentation: https://ai.google.dev/gemini-api/docs/image-generation?hl=zh-cn
Endpoint
POST http://v98store.com/v1beta/models/imagen-4.0-generate-001:predict cURL Command
curl -X POST 'http://v98store.com/v1beta/models/imagen-4.0-generate-001:predict' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{ "instances": [ { "prompt": "小女孩" } ], "parameters": { "sampleCount": 4 } }' Parameters
| Name | In | Description | Required |
|---|---|---|---|
| key | query | Yes | |
| Content-Type | header | Yes |
Request Body
Example
{
"instances": [
{
"prompt": "小女孩"
}
],
"parameters": {
"sampleCount": 4
}
} Responses
200 -
Example
undefined