Модель генерации изображений: ideogram
- 27.08.2024 Данный сайт теперь поддерживает модель генерации изображений
ideogram - Официальная реклама утверждает, что версия V_2 превосходит Midjourney
Онлайн-тестирование
Примечание 1. Посетите https://ideogram.ddaiai.com (если заблокировано, попробуйте изменить префикс поддомена на any)
2. Если заблокировано, вы можете изменить адрес самостоятельно: https://any.ddaiai.com — замените any на что-то другое, например https://2025.ddaiai.com, все они работают
Настройка
- Откройте https://ideogram.ddaiai.com
- Настройте поля, показанные на изображении ниже
- Конечная точка Ideogram API: https://api.openai-hk.com
- Ключ Ideogram: hk-your-apiKey

Результат

Цены
- Одно изображение на запрос
- Разные модели имеют разные цены
| Модель | Цена | Примечания |
|---|---|---|
| V_2 | 3000 кредитов/изображение | |
| V_2_TURBO | 2000 кредитов/изображение | |
| V_1 | 2400 кредитов/изображение | |
| V_1_TURBO | 800 кредитов/изображение | |
| upscale | 2400 кредитов/изображение | Увеличение изображения |
| describe | 400 кредитов/изображение | Изображение в текст |
Использование API
- Параметры идентичны официальному API
- Замените официальный
https://api.ideogram.aiнаhttps://api.openai-hk.com/ideogram - Замените официальный заголовок
Api-KeyнаAuthorization
1. Текст в изображение
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. Изображение в изображение
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. Увеличение изображения
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. Изображение в текст
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.pngcurl --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."
}
]
}Использование API V3
- 08.05.2025 Данный сайт теперь поддерживает
ideogram-v3 - Официальная документация: https://developer.ideogram.ai/api-reference/api-reference/generate-v3
- Официальные цены: https://about.ideogram.ai/api-pricing
- Цены на данном сайте: обменный курс 1:3, например, если официальная цена составляет
0.06USD, данный сайт взимает0.18CNY, что равняется1800кредитам v31800 кредитов/изображение,v3_turbo900 кредитов/изображение,v3_quality2700 кредитов/изображение
1. Текст в изображение (generate)
- Для дополнительных параметров обратитесь к официальной документации
shell
curl -X POST https://api.openai-hk.com/ideogram/v1/ideogram-v3/generate \
-H 'Authorization: Bearer hk-your-api-key' \
-H "Content-Type: multipart/form-data" \
-F prompt="A photo of a cat sleeping on a couch." \
-F rendering_speed="TURBO"curl -X POST https://api.openai-hk.com/ideogram/v1/ideogram-v3/generate \
-H 'Authorization: Bearer hk-your-api-key' \
-H "Content-Type: multipart/form-data" \
-F prompt="A photo of a cat sleeping on a couch." \
-F rendering_speed="TURBO"- С сохранением персонажа
shell
curl -X POST https://api.openai-hk.com/ideogram/v1/ideogram-v3/generate \
-H 'Authorization: Bearer hk-your-api-key' \
-H "Content-Type: multipart/form-data" \
-F prompt="A photo of a cat sleeping on a couch." \
-F character_reference_images[]=@<file1> \
-F character_reference_images[]=@<file2> \
-F rendering_speed="TURBO"curl -X POST https://api.openai-hk.com/ideogram/v1/ideogram-v3/generate \
-H 'Authorization: Bearer hk-your-api-key' \
-H "Content-Type: multipart/form-data" \
-F prompt="A photo of a cat sleeping on a couch." \
-F character_reference_images[]=@<file1> \
-F character_reference_images[]=@<file2> \
-F rendering_speed="TURBO"Тело ответа
json
{
"created": "2000-01-23 04:56:07+00:00",
"data": [
{
"prompt": "A photo of a cat sleeping on a couch.",
"resolution": "1024x1024",
"is_image_safe": true,
"seed": 12345,
"url": "https://ideogram.ai/api/images/ephemeral/xtdZiqPwRxqY1Y7NExFmzB.png?exp=1743867804&sig=e13e12677633f646d8531a153d20e2d3698dca9ee7661ee5ba4f3b64e7ec3f89",
"style_type": "GENERAL"
}
]
}{
"created": "2000-01-23 04:56:07+00:00",
"data": [
{
"prompt": "A photo of a cat sleeping on a couch.",
"resolution": "1024x1024",
"is_image_safe": true,
"seed": 12345,
"url": "https://ideogram.ai/api/images/ephemeral/xtdZiqPwRxqY1Y7NExFmzB.png?exp=1743867804&sig=e13e12677633f646d8531a153d20e2d3698dca9ee7661ee5ba4f3b64e7ec3f89",
"style_type": "GENERAL"
}
]
}2. Редактирование изображения (edit)
- Для дополнительных параметров обратитесь к официальной документации
shell
curl -X POST https://api.openai-hk.com/ideogram/v1/ideogram-v3/edit \
-H 'Authorization: Bearer hk-your-api-key' \
-H "Content-Type: multipart/form-data" \
-F image=@<file1> \
-F mask=@<file1> \
-F prompt="A photo of a cat wearing a hat." \
-F rendering_speed="DEFAULT"curl -X POST https://api.openai-hk.com/ideogram/v1/ideogram-v3/edit \
-H 'Authorization: Bearer hk-your-api-key' \
-H "Content-Type: multipart/form-data" \
-F image=@<file1> \
-F mask=@<file1> \
-F prompt="A photo of a cat wearing a hat." \
-F rendering_speed="DEFAULT"- С сохранением персонажа
shell
curl -X POST https://api.openai-hk.com/ideogram/v1/ideogram-v3/edit \
-H 'Authorization: Bearer hk-your-api-key' \
-H "Content-Type: multipart/form-data" \
-F image=@<file1> \
-F mask=@<file1> \
-F prompt="A photo of a cat wearing a hat." \
-F character_reference_images[]=@<file1> \
-F character_reference_images[]=@<file2> \
-F rendering_speed="DEFAULT"curl -X POST https://api.openai-hk.com/ideogram/v1/ideogram-v3/edit \
-H 'Authorization: Bearer hk-your-api-key' \
-H "Content-Type: multipart/form-data" \
-F image=@<file1> \
-F mask=@<file1> \
-F prompt="A photo of a cat wearing a hat." \
-F character_reference_images[]=@<file1> \
-F character_reference_images[]=@<file2> \
-F rendering_speed="DEFAULT"3. Reframe
- Для дополнительных параметров обратитесь к официальной документации
shell
curl -X POST https://api.openai-hk.com/ideogram/v1/ideogram-v3/reframe \
-H 'Authorization: Bearer hk-your-api-key' \
-H "Content-Type: multipart/form-data" \
-F image=@<file1> \
-F resolution="512x1536"curl -X POST https://api.openai-hk.com/ideogram/v1/ideogram-v3/reframe \
-H 'Authorization: Bearer hk-your-api-key' \
-H "Content-Type: multipart/form-data" \
-F image=@<file1> \
-F resolution="512x1536"4. Удаление фона / Замена фона
- Для дополнительных параметров обратитесь к официальной документации
shell
curl -X POST https://api.openai-hk.com/ideogram/v1/ideogram-v3/replace-background \
-H 'Authorization: Bearer hk-your-api-key' \
-H "Content-Type: multipart/form-data" \
-F image=@<file1> \
-F prompt="Add a forest in the background"curl -X POST https://api.openai-hk.com/ideogram/v1/ideogram-v3/replace-background \
-H 'Authorization: Bearer hk-your-api-key' \
-H "Content-Type: multipart/form-data" \
-F image=@<file1> \
-F prompt="Add a forest in the background"
OpenAi-HK