Ideogram V4 API

Image generation model provided through GloopAPI.

公開售價: USD 0.06 / 次請求

公開 ID: ideogram-v4

模型型別: 圖片

圖片生成

定價

公開售價 · USD 0.06 / 次請求

模型規格

模型型別
圖片
提示詞上限(字元)
1500
最多生成圖片數
1
圖片尺寸
1024x1024, 1536x1024, 1024x1536
圖片生成
支援

隱私

未知

未知表示尚未釋出經過核實的完整服務隱私保證。無審查不保證任意請求成功。

快速開始

確認該模型出現在你的金鑰目錄中,再檢視該能力文件中的輸入選項。

將 GLOOP_API_BASE 設為 API 位址,GLOOP_API_KEY 設為伺服器端金鑰。

curl

curl --fail-with-body "${GLOOP_API_BASE%/}/v1/models" \
  -H "Authorization: Bearer $GLOOP_API_KEY"

Python

import os, json, urllib.request

url = os.environ['GLOOP_API_BASE'].rstrip('/') + "/v1/models"
headers = {'Authorization': 'Bearer ' + os.environ['GLOOP_API_KEY']}
request = urllib.request.Request(url, headers=headers)
with urllib.request.urlopen(request) as response:
    print(json.load(response))

Node.js

const url = process.env.GLOOP_API_BASE.replace(/\/$/, '') + "/v1/models";
const headers = { Authorization: `Bearer ${process.env.GLOOP_API_KEY}` };
const response = await fetch(url, { headers });
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());

執行前請確認模型存取權限與價格。複製範例不會呼叫 API。

檢視 API 指南 · 發現模型 · SDK 接入 · 計費

常見問題

Ideogram V4 — 應使用哪個模型 ID?

ideogram-v4

Ideogram V4 — 此模型如何計費?

公開售價: USD 0.06 / 次請求

同類型模型

全部模型