Skip to main content

GPT Image 2.5 Python SDK for RunAPI

The GPT Image 2.5 Python SDK provides text-to-image and image editing clients. Requests select gpt-image-2.5-flare or gpt-image-2.5-sunburst.

Install

pip install runapi-gpt-image-2.5

Quick start

from runapi.gpt_image_2_5 import GptImage25Client

client = GptImage25Client()
task = client.text_to_image.create(
    model="gpt-image-2.5-flare",
    prompt="A precise product render on white marble",
    aspect_ratio="1:1",
    output_resolution="1k",
)
status = client.text_to_image.get(task.id)

edit = client.edit_image.create(
    model="gpt-image-2.5-sunburst",
    prompt="Change the background to a botanical studio",
    source_image_urls=["https://cdn.runapi.ai/public/samples/image.jpg"],
)

Use create to submit, get to fetch task status, and run to create and poll until completion. Keep RUNAPI_API_KEY in the environment or a secret manager.

RunAPI-generated file URLs are temporary. Store generated files in durable storage within 7 days.

License

Licensed under the Apache License, Version 2.0.

Metadata

Release files for runapi-gpt-image-2.5 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for runapi-gpt-image-2.5 0.2.0
File Size Uploaded
runapi_gpt_image_2_5-0.2.0.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for runapi-gpt-image-2.5 0.2.0
File Interpreter ABI Platform
runapi_gpt_image_2_5-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / runapi_gpt_image_2_5-0.2.0.tar.gz

Download URL runapi_gpt_image_2_5-0.2.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
adf3dc3c075908fdb66f09698dd60c145d33b40e5db2250f94b3f3567991bf34
BLAKE2b-256 checksum
How to use checksums
cf5ced4344da8ed8d2fcb958c29ad7a7c197dc2369578431f6b14d4d35d19149
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Omarchy","version":"4.0.1","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / runapi_gpt_image_2_5-0.2.0-py3-none-any.whl

Download URL runapi_gpt_image_2_5-0.2.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c9b1a6c335130a130b7030a34a2e2d7a17adea28803665fa51c2190fea42cea
BLAKE2b-256 checksum
How to use checksums
dcf4c89964eb40fdaf4a1df4c1ac82aa899725bdeb37848780e79f478efcb18f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Omarchy","version":"4.0.1","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page