Skip to content

🖼 绘图模型 ideogram

  • 2024.08.27 本站已经支持 绘图模型 ideogram
  • 效果 官方宣传 版本V_2 碾压 midjournery

在线试用

注意

1.访问 https://ideogram.ddaiai.com (如果被墙了,换下二级域名前缀 any)
2.如果发现被墙了 可以自己换地址 https://any.ddaiai.comany 换其他的 如 https://2025.ddaiai.com 都能访问

设置

ideogram

效果

ideogram

计费

  • 一次一张
  • 不同模型不同价格
模型价格说明
V_23000积分/张
V_2_TURBO2000积分/张
V_12400积分/张
V_1_TURBO800积分/张
upscale2400积分/张图片放大
describe400积分/张图生文

API调用

  • 官方api 参数调用 一模一样
  • 将官方的 https://api.ideogram.ai 替换为 https://api.openai-hk.com/ideogram
  • 将官方的 Api-Key 替换为 Authorization 即可

1.文生图

post https://api.openai-hk.com/ideogram/generate

shell
curl --request POST \
  --url https://api.openai-hk.com/ideogram/generate \
  --header 'Authorization: Bearer hk-your-api-key' \
  --header 'content-type: application/json' \
  --data '{
  "image_request": {
    "model": "V_2_TURBO",
    "magic_prompt_option": "AUTO",
    "prompt": "小花猫在刷牙",
    "aspect_ratio": "ASPECT_16_9",
    "seed": 889978,
    "negative_prompt": "food"
  }
}'
curl --request POST \
  --url https://api.openai-hk.com/ideogram/generate \
  --header 'Authorization: Bearer hk-your-api-key' \
  --header 'content-type: application/json' \
  --data '{
  "image_request": {
    "model": "V_2_TURBO",
    "magic_prompt_option": "AUTO",
    "prompt": "小花猫在刷牙",
    "aspect_ratio": "ASPECT_16_9",
    "seed": 889978,
    "negative_prompt": "food"
  }
}'

返回体

json
{
	"created": "2024-08-27T06:37:55.540681+00:00",
	"data": [
		{
			"is_image_safe": true,
			"prompt": "A photo of a kitten brushing its teeth. The kitten is sitting on a wooden surface and is wearing a tiny blue coat. A human hand is holding the kitten and a toothbrush. The background is blurred and contains a houseplant and a lamp.",
			"resolution": "1312x736",
			"seed": 889978,
			"url": "https://ideogram.ai/api/images/ephemeral/VpY8Fh3BReygMVQ91pVlcg.png?exp=1724827086&sig=5e699e2e7f0b1840603c33ba5188121c2afeceb58b1d07daf892da883e5c0ee7"
		}
	]
}
{
	"created": "2024-08-27T06:37:55.540681+00:00",
	"data": [
		{
			"is_image_safe": true,
			"prompt": "A photo of a kitten brushing its teeth. The kitten is sitting on a wooden surface and is wearing a tiny blue coat. A human hand is holding the kitten and a toothbrush. The background is blurred and contains a houseplant and a lamp.",
			"resolution": "1312x736",
			"seed": 889978,
			"url": "https://ideogram.ai/api/images/ephemeral/VpY8Fh3BReygMVQ91pVlcg.png?exp=1724827086&sig=5e699e2e7f0b1840603c33ba5188121c2afeceb58b1d07daf892da883e5c0ee7"
		}
	]
}

2.图生图

post https://api.openai-hk.com/ideogram/remix

shell
curl --request POST \
  --url https://api.openai-hk.com/ideogram/remix \
  --header 'Authorization: Bearer hk-your-api-key' \
  --header 'content-type: multipart/form-data' \
  --form image_file=@/your/dir/file/163-q.jpg \
  --form 'image_request={"model":"V_1_TURBO","magic_prompt_option":"AUTO","prompt":"狗","aspect_ratio":"ASPECT_16_9","seed":1234567,"negative_prompt":"花"}'
curl --request POST \
  --url https://api.openai-hk.com/ideogram/remix \
  --header 'Authorization: Bearer hk-your-api-key' \
  --header 'content-type: multipart/form-data' \
  --form image_file=@/your/dir/file/163-q.jpg \
  --form 'image_request={"model":"V_1_TURBO","magic_prompt_option":"AUTO","prompt":"狗","aspect_ratio":"ASPECT_16_9","seed":1234567,"negative_prompt":"花"}'

返回体

json
{
	"created": "2024-08-27T06:30:50.286536+00:00",
	"data": [
		{
			"is_image_safe": true,
			"prompt": "A playful and adorable Japanese Shiba Inu dog. The dog has a fluffy, red-brown coat and beaming, bright eyes. It is wagging its bushy tail and looking up with a mischievous grin. The background features cherry blossoms in full bloom, creating a beautiful, serene atmosphere.",
			"resolution": "1280x720",
			"seed": 1234567,
			"url": "https://ideogram.ai/api/images/ephemeral/UEcYRZecRpKR9ywbSUd6zg.png?exp=1724826654&sig=75450815e5acdc0a3192d4e3a6d8acf31a23cd96dddc4d4edef02bcc4407ee18"
		}
	]
}
{
	"created": "2024-08-27T06:30:50.286536+00:00",
	"data": [
		{
			"is_image_safe": true,
			"prompt": "A playful and adorable Japanese Shiba Inu dog. The dog has a fluffy, red-brown coat and beaming, bright eyes. It is wagging its bushy tail and looking up with a mischievous grin. The background features cherry blossoms in full bloom, creating a beautiful, serene atmosphere.",
			"resolution": "1280x720",
			"seed": 1234567,
			"url": "https://ideogram.ai/api/images/ephemeral/UEcYRZecRpKR9ywbSUd6zg.png?exp=1724826654&sig=75450815e5acdc0a3192d4e3a6d8acf31a23cd96dddc4d4edef02bcc4407ee18"
		}
	]
}

3.图放大

post https://api.openai-hk.com/ideogram/upscale

shell
curl --request POST \
  --url https://api.openai-hk.com/ideogram/upscale \
  --header 'Authorization: Bearer hk-your-api-key' \
  --header 'content-type: multipart/form-data' \
  --form image_file=@/your/dir/file/6267944d-ce94-40d9-bc74-6b5aa9a3f971_0.png \
  --form 'image_request={"resemblance":50,"magic_prompt_option":"AUTO","prompt":"good new","seed":12345,"detail":50}'
curl --request POST \
  --url https://api.openai-hk.com/ideogram/upscale \
  --header 'Authorization: Bearer hk-your-api-key' \
  --header 'content-type: multipart/form-data' \
  --form image_file=@/your/dir/file/6267944d-ce94-40d9-bc74-6b5aa9a3f971_0.png \
  --form 'image_request={"resemblance":50,"magic_prompt_option":"AUTO","prompt":"good new","seed":12345,"detail":50}'

返回体

json
{
	"created": "2024-08-26T15:08:17.566361+00:00",
	"data": [
		{
			"is_image_safe": true,
			"prompt": "A joyful and heartwarming scene of a group of people celebrating good news. They are gathered around a large cake adorned with the words 'Happy News!' in frosting. The people are smiling and clapping, with some lifting champagne flutes in a toast. The room is decorated with colorful balloons and streamers, creating an atmosphere of happiness and excitement.",
			"resolution": "2048x2048",
			"seed": 12345,
			"url": "https://ideogram.ai/api/images/ephemeral/tf_hAJDDSAilGIKtGrzL3w.png?exp=1724771317&sig=c9dbaa8b0f9c0515d2d1d6a31adf9ecf06223e219b53f59b7cb9d7d3320bd18a"
		}
	]
}
{
	"created": "2024-08-26T15:08:17.566361+00:00",
	"data": [
		{
			"is_image_safe": true,
			"prompt": "A joyful and heartwarming scene of a group of people celebrating good news. They are gathered around a large cake adorned with the words 'Happy News!' in frosting. The people are smiling and clapping, with some lifting champagne flutes in a toast. The room is decorated with colorful balloons and streamers, creating an atmosphere of happiness and excitement.",
			"resolution": "2048x2048",
			"seed": 12345,
			"url": "https://ideogram.ai/api/images/ephemeral/tf_hAJDDSAilGIKtGrzL3w.png?exp=1724771317&sig=c9dbaa8b0f9c0515d2d1d6a31adf9ecf06223e219b53f59b7cb9d7d3320bd18a"
		}
	]
}

4.图生文

post https://api.openai-hk.com/ideogram/describe

shell
curl --request POST \
  --url https://api.openai-hk.com/ideogram/describe \
  --header 'Authorization: Bearer hk-your-api-key' \
  --header 'content-type: multipart/form-data' \
  --form image_file=@/your/dir/file/food.png
curl --request POST \
  --url https://api.openai-hk.com/ideogram/describe \
  --header 'Authorization: Bearer hk-your-api-key' \
  --header 'content-type: multipart/form-data' \
  --form image_file=@/your/dir/file/food.png

返回体

json
{
	"descriptions": [
		{
			"text": "A vibrant and abundant spread of food and drinks on a wooden table. There are various dishes, including a pot of pasta, slices of meat, fresh fruits like apples and grapes, and a bowl of soup. The table is adorned with wine glasses filled with red wine, and there are also some decorative items like a small Christmas tree. The lighting is warm, suggesting a cozy indoor setting, possibly during the holiday season."
		}
	]
}
{
	"descriptions": [
		{
			"text": "A vibrant and abundant spread of food and drinks on a wooden table. There are various dishes, including a pot of pasta, slices of meat, fresh fruits like apples and grapes, and a bowl of soup. The table is adorned with wine glasses filled with red wine, and there are also some decorative items like a small Christmas tree. The lighting is warm, suggesting a cozy indoor setting, possibly during the holiday season."
		}
	]
}