Ideogram 3 Reframe Serverless API

Ideogram 3.0's Reframe effortlessly adapts images to diverse formats, enhancing visual content creation for any platform.

~11.30s
$0.037 - $0.113 per generation
 1import requests
 2import json
 3
 4url = "https://api.segmind.com/v1/ideogram-3-reframe"
 5headers = {
 6    "x-api-key": "YOUR_API_KEY",
 7    "Content-Type": "application/json"
 8}
 9
10data = {
11    "image": "https://segmind-resources.s3.amazonaws.com/output/1a759c90-ef73-43dc-b4c0-58c1ae13d2e4-01961465-ffee-4df5-a1cc-4f4fe232f434.png",
12    "resolution": "1024x1024",
13    "rendering_speed": "DEFAULT",
14    "style_codes": [],
15    "style_reference_images": []
16}
17
18response = requests.post(url, headers=headers, json=data)
19
20if response.status_code == 200:
21    result = response.json()
22    print(json.dumps(result, indent=2))
23else:
24    print(f"Error: {response.status_code}")
25    print(response.text)

API Endpoint

POSThttps://api.segmind.com/v1/ideogram-3-reframe

Parameters

imagerequired
string (uri)

Image Url used as base input. Use high-resolution links for optimal results.

color_paletteoptional
any | any

A color palette for generation

One of:
Preset Color Paletteoptional
any
namerequired
string
Custom Color Paletteoptional
any
membersrequired
object[]
rendering_speedoptional
string

Sets rendering speed. 'DEFAULT' works well for most tasks.

Default: "DEFAULT"
Allowed values :
"TURBO""DEFAULT""QUALITY"
resolutionoptional
string

Choose output resolution. '1024x1024' for balance of quality and efficiency.

Default: "1024x1024"
Allowed values (69 total):
"512x1536""576x1408""576x1472""576x1536""640x1344""640x1408""640x1472""640x1536""704x1152""704x1216"+59 more
seedoptional
integer

Seed for random operations. Use '42' for reproducibility in testing.

Range: 100 - 999999
style_codesoptional
string[]

Apply style codes here. Try ['Modern','Aesthetic'] for artistic results.

style_reference_imagesoptional
string[]

Upload style reference images. Use your favorite artworks for personalization.

Response Type

Returns: Image

Common Error Codes

The API returns standard HTTP status codes. Detailed error messages are provided in the response body.

400

Bad Request

Invalid parameters or request format

401

Unauthorized

Missing or invalid API key

403

Forbidden

Insufficient permissions

404

Not Found

Model or endpoint not found

406

Insufficient Credits

Not enough credits to process request

429

Rate Limited

Too many requests

500

Server Error

Internal server error

502

Bad Gateway

Service temporarily unavailable

504

Timeout

Request timed out