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.

Links

License

Licensed under the Apache License, Version 2.0.

Release files for runapi-gpt-image-2.5 0.1.1

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.1.1
File Size Uploaded
runapi_gpt_image_2_5-0.1.1.tar.gz 4.5 kB Details

Built distribution (wheel)

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

Total release size:10.6 kB

Release files / runapi_gpt_image_2_5-0.1.1.tar.gz

Download URL runapi_gpt_image_2_5-0.1.1.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3b588f25e53285224ff3e0cf4e30d003ab4e67b445198aa07ea532b2953bbdda
BLAKE2b-256 checksum
How to use checksums
07b16aed1218d58bd58510c2571759681219d45449817e79299c2af8df4b06da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.1.1-py3-none-any.whl

Download URL runapi_gpt_image_2_5-0.1.1-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed1c3ce544cf004a028813fd3b1ab6a26b485dfc8609ad4222664219c808dee9
BLAKE2b-256 checksum
How to use checksums
243c0103b31f86d6e086beebdf09b0eaeb35462c31dc131c98f3f6da674ddbad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.1.1 This release

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