Hình ảnhxAIMới

Grok Imagine Image

Tạo hình ảnh biểu cảm xAI, độ phân giải 2K không tính chi phí bổ sung

model: "grok-imagine-image"

Tài liệu APITài liệu dành cho agents

Các chế độ

Một ID mô hình, mọi chế độ bên dưới. Các trường bạn gửi chọn chế độ, và giá theo chế độ.

Chế độĐược chọn bằngGiá điển hình
Từ văn bản sang hình ảnhprompt
Yêu cầu ví dụ
{
  "model": "grok-imagine-image",
  "input": {
    "prompt": "a lighthouse at dusk"
  }
}
$0.020

Đầu vào

Bắt buộc

Prompt

Tùy chọn

Aspect Ratio

Tùy chọn

Resolution

Tùy chọn nâng cao (1)

Cài đặt nhà cung cấp ngoài các điều khiển chính. Để trống để sử dụng các giá trị mặc định của mô hình.

Tùy chọn

File format of the result.

Kết quả

Grok Imagine ImageKết quả mẫu

Kết quả thực từ mô hình này. Chạy để xem kết quả của bạn ở đây.

curl https://arteza.ai/api/v1/generations \
  -H "Authorization: Bearer $ARTEZA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-imagine-image",
  "input": {
    "prompt": "Tornado funnel touching down on an empty Nebraska cornfield at golden hour, a ragged rope condensation column backlit by the low sun to a translucent amber, surrounding sky a deep bruised green-violet, wide horizontal cinematic weather drama, rows of flattened corn radiating outward from the contact point, photorealistic atmospheric turbulence, no people, elemental and terrifying scale"
  }
}'
Grok Imagine Image 1Grok Imagine Image 2Grok Imagine Image 3Grok Imagine Image 4Grok Imagine Image 5Grok Imagine Image 6