curl-X POST 'https://pollo.ai/api/platform/v1/generation/openai/gpt-image-2-5/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", "mode": "flare", "aspectRatio": "auto", "resolution": "1K", "quality": "low", "background": "auto" }}'
{"input":{"prompt":"A cinematic shot of a golden retriever running through a field of sunflowers at sunset, warm rim light, shallow depth of field","mode":"flare","aspectRatio":"auto","resolution":"1K","quality":"low","background":"auto"},"webhookUrl":"https://example.com/webhooks/pollo"}
แผนผัง
ช่องป้อนข้อมูลสำหรับปลายทางและโหมดที่เลือก
สนาม
ประเภท
ที่จำเป็น
คำอธิบาย
prompt
string
ใช่
Text prompt describing the content to generate.
mode
string
เลขที่
Generation mode of the model (e.g. a faster or higher-quality tier).
aspectRatio
string
เลขที่
Output aspect ratio, as width:height (e.g. 16:9).
resolution
string
เลขที่
Output resolution of the generated media (e.g. 720p, 1080p, 2K, 4K). Values are case-insensitive.
quality
string
เลขที่
Output quality tier of the generation.
background
string
เลขที่
Background of the generated image: auto lets the model decide, transparent produces an alpha background (PNG), opaque forces a solid background.
Focused Asset Revisions: Change a selected color, material, or background while explicitly protecting the approved subject and composition.
Catalog Scene Variants: Place a referenced object in a new visual setting, checking its geometry and identifying details against the original.
Transparent App Illustrations: Create isolated illustrated objects that can be placed over different interface backgrounds.
Campaign Copy Layouts: Combine a supplied headline with a defined visual hierarchy, then inspect the wording before export.
Reference-Based Character Art: Explore new situations for a character while retaining the key appearance details from a reference image.
Design Review Iterations: Turn specific feedback, such as “move the focal point left” or “soften the background,” into a new visual candidate.
วิธีใช้ GPT Image 2.5 API
Get an API Key: Create a Pollo API account and generate your API key from the developer dashboard.
Choose the Model: Send requests to the GPT Image 2.5 endpoint at /generation/openai/gpt-image-2-5/image.
Add Your Inputs: Supply a prompt and any supported source images. Choose qualityand output settings like background; use transparent when an isolated asset is required.
Generate and Retrieve: Submit the task, poll the returned task status, and download the finished content once it succeeds.
แนวทางปฏิบัติที่ดีที่สุดในการเขียน Prompt สำหรับ GPT Image 2.5 API
Protected Details: Identify the particular silhouette, expression, label, or arrangement that makes the source asset recognizable.
Limited Revision Scope: Resolve one important design issue per edit so you can judge the improvement without unrelated changes.
Text Placement: Provide both the required words and their position; ask for a clear hierarchy rather than simply requesting attractive typography.
Asset Boundaries: For a cutout, describe a complete, unobstructed subject with space around the silhouette.
Variant Selection: Flare prioritizes speed; Sunburst prioritizes demanding quality requirements. Compare available options on your own workload rather than assuming one always wins.
Pollo API ช่วยให้แอปพลิเคชันของคุณรวมการสร้างและแก้ไขรูปภาพเข้ากับโมเดลสร้างสรรค์อื่นๆ ผ่านแพลตฟอร์มเดียว พร้อมเอกสารประกอบสำหรับการผสานรวมและการดึงข้อมูลงาน
ลอง GPT Image 2.5 บน Pollo API ด้วยเนื้อหาที่มีอยู่และการแก้ไขเฉพาะหนึ่งรายการ เพื่อประเมินว่าผลลัพธ์รักษาเจตนาเดิมของคุณได้ดีแค่ไหน