Tất cả models
G
Imagen 4
Trung MớiGoogle Imagen 4 — tạo ảnh chất lượng cao, photorealistic, hỗ trợ text trong ảnh.
N/A
Context Window
0K
Max Output
Trung bình
Tốc độ
5/5
Chất lượng
Bảng giá
| Loại | Giá gốc ($) | Futrix API (₫) | Bao gồm |
|---|---|---|---|
| Input / 1M tokens | $0.02 | 681đ/1M | Smart routing tự động Cache tiết kiệm 35-60% 1 API key cho 99+ models Thanh toán VND/USD/Crypto |
| Output / 1M tokens | $0.04 | 1.362đ/1M |
* Giá Futrix API cao hơn giá gốc ~30% nhưng bao gồm smart routing, semantic cache (tiết kiệm thực tế 35-60%), fallback tự động, và thanh toán VND.
Tính năng hỗ trợ
Image Generation Photorealistic Text in Image
Quick Start
Python
from openai import OpenAI
client = OpenAI(
base_url="https://api.futrixapi.com/v1",
api_key="sk-ftx-your-key"
)
response = client.chat.completions.create(
model="imagen-4",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)cURL
curl -X POST https://api.futrixapi.com/v1/chat/completions \
-H "Authorization: Bearer sk-ftx-your-key" \
-H "Content-Type: application/json" \
-d '{"model": "imagen-4", "messages": [{"role": "user", "content": "Hello!"}]}'