curl-X POST 'https://pollo.ai/api/platform/v1/generation/openai/gpt-image-2-6/image'\-H'Content-Type: application/json'\-H'x-api-key: YOUR_API_KEY'\-d'{ "input": { "prompt": "A cinematic shot of a golden retriever running through a field of sunflowers at sunset, warm rim light, shallow depth of field", "aspectRatio": "auto", "resolution": "1K", "quality": "low", "imageFormat": "png", "complexity": "low", "background": "auto", "mode": "flare" }}'
Du kan eventuelt inkludere webhookUrl for å motta et tilbakekall når oppgaven lykkes eller mislykkes.
Valgfritt forespørselsfelt
{"input":{"prompt":"A cinematic shot of a golden retriever running through a field of sunflowers at sunset, warm rim light, shallow depth of field","aspectRatio":"auto","resolution":"1K","quality":"low","imageFormat":"png","complexity":"low","background":"auto","mode":"flare"},"webhookUrl":"https://example.com/webhooks/pollo"}
Skjema
Inndatafelt for det valgte endepunktet og modusen.
Felt
Type
Obligatorisk
Beskrivelse
prompt
string
Ja
Text prompt describing the content to generate.
aspectRatio
string
Ingen
Output aspect ratio, as width:height (e.g. 16:9).
resolution
string
Ingen
Output resolution of the generated media (e.g. 720p, 1080p, 2K, 4K). Values are case-insensitive.
quality
string
Ingen
Output quality tier of the generation.
imageFormat
string
Ingen
—
complexity
string
Ingen
—
background
string
Ingen
Background of the generated image: auto lets the model decide, transparent produces an alpha background (PNG), opaque forces a solid background.
mode
string
Ingen
Generation mode of the model (e.g. a faster or higher-quality tier).
近所の修理ワークショップのための縦長ポスターをデザインしてください。上部に「FIX IT TOGETHER」を配置し、中央に修理された家庭用品の親しみやすいイラストを置き、下に「Saturday, 10 AM」を入れてください。クリーム、ネイビー、オレンジを使い、余白をたっぷり取り、追加のテキストは入れないでください。