Skip to main content

Ideogram V3 image generation client for RunAPI

Project description

Ideogram V3 Python SDK for RunAPI

The Ideogram V3 Python SDK is the language-specific package for Ideogram V3 on RunAPI. Use it for text-to-image, edit-image, remix-image, and reframe-image flows when your application needs JSON request bodies, task status lookup, and consistent RunAPI errors in Python.

For model details, use https://runapi.ai/models/ideogram-v3; for API reference, use https://runapi.ai/docs#ideogram-v3; for SDK docs, use https://runapi.ai/docs#sdk-ideogram-v3.

Install

pip install runapi-ideogram-v3

Quick start

from runapi.ideogram_v3 import IdeogramV3Client

client = IdeogramV3Client()  # reads RUNAPI_API_KEY, or pass api_key="sk-..."

task = client.text_to_image.create(
    model="ideogram-v3-text-to-image",
    prompt="A cinematic lakeside at twilight",
    aspect_ratio="16:9",
    rendering_speed="quality",
)
status = client.text_to_image.get(task.id)

edit = client.edit_image.create(
    model="ideogram-v3-edit",
    prompt="Replace the sky with aurora",
    source_image_url="https://example.com/source.jpg",
    mask_url="https://example.com/mask.png",
)

Use create to submit a task and return quickly, get to fetch the latest task state, and run to create and poll until completion:

result = client.text_to_image.run(
    model="ideogram-v3-text-to-image",
    prompt="A serene mountain lake at dawn",
)
print(result.images[0].url)

In web request handlers, prefer create plus webhook or later get polling so a worker is not held open.

RunAPI-generated file URLs are temporary. Download and store generated images in your own durable storage within 7 days; do not treat returned URLs as long-term assets.

Language notes

Pass parameters as keyword arguments and catch the runapi.ideogram_v3 error classes when building image jobs or scripts. The available resources are text_to_image, edit_image, remix_image, and reframe_image. Keep RUNAPI_API_KEY in the environment or your secret manager; never commit API keys or callback secrets.

Links

License

Licensed under the Apache License, Version 2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

runapi_ideogram_v3-0.1.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

runapi_ideogram_v3-0.1.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file runapi_ideogram_v3-0.1.0.tar.gz.

File metadata

  • Download URL: runapi_ideogram_v3-0.1.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for runapi_ideogram_v3-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b071509bd7479199a667443815cb98c9f105149ce148cbca8d4982c47b08484b
MD5 8504c1c9eacd720cc963a64d8ebb8906
BLAKE2b-256 0f13bf79f36428e80f8a47104b3a8f7a6f179635513f07951288368b6b3a966f

See more details on using hashes here.

File details

Details for the file runapi_ideogram_v3-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: runapi_ideogram_v3-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for runapi_ideogram_v3-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 788ea4227f73a26f954f11284c729610deb72c63e1681e98f8bb24a8af64900d
MD5 c94d8fa619451ac5e6324b840e2b0306
BLAKE2b-256 840bfb6c0189798e89366de3f689c642aaed1f5f0fa5aa388a6fb1bd9ab92dbe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page