GPT Image 1.5
此内容尚不支持你的语言。
| Provider | OpenAI |
| Model name | gpt-image-1.5 |
| Endpoint | /v1/images/generations |
| Credits | 10 per image |
| Sizes | 1024x1024, 1536x1024, 1024x1536 |
Features
Section titled “Features”- Precise text rendering
- Multiple quality tiers
- Image editing support
API Usage
Section titled “API Usage”from openai import OpenAI
client = OpenAI( api_key="YOUR_API_KEY", base_url="https://api.hiapi.ai/v1")
response = client.images.generate( model="gpt-image-1.5", prompt="A poster with bold text saying HELLO WORLD in neon style", size="1024x1024", quality="medium")
print(response.data[0].url)curl -X POST https://api.hiapi.ai/v1/images/generations \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-image-1.5", "prompt": "A poster with bold text saying HELLO WORLD in neon style", "size": "1024x1024", "quality": "medium" }'import OpenAI from "openai";
const client = new OpenAI({ apiKey: "YOUR_API_KEY", baseURL: "https://api.hiapi.ai/v1"});
const response = await client.images.generate({ model: "gpt-image-1.5", prompt: "A poster with bold text saying HELLO WORLD in neon style", size: "1024x1024", quality: "medium"});
console.log(response.data[0].url);