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
- Model overview: https://runapi.ai/models/gpt-image-2.5
- Flare: https://runapi.ai/models/gpt-image-2.5/flare
- Sunburst: https://runapi.ai/models/gpt-image-2.5/sunburst
- API reference: https://runapi.ai/docs/api/gpt-image-2-5/text-to-image
- SDK docs: https://runapi.ai/docs/resources/sdks
- Repository: https://github.com/runapi-ai/gpt-image-2.5-sdk
License
Licensed under the Apache License, Version 2.0.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file runapi_gpt_image_2_5-0.1.1.tar.gz.
File metadata
- Download URL: runapi_gpt_image_2_5-0.1.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b588f25e53285224ff3e0cf4e30d003ab4e67b445198aa07ea532b2953bbdda
|
|
| MD5 |
05167d46eaf84d9a1268166dd305f280
|
|
| BLAKE2b-256 |
07b16aed1218d58bd58510c2571759681219d45449817e79299c2af8df4b06da
|
File details
Details for the file runapi_gpt_image_2_5-0.1.1-py3-none-any.whl.
File metadata
- Download URL: runapi_gpt_image_2_5-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed1c3ce544cf004a028813fd3b1ab6a26b485dfc8609ad4222664219c808dee9
|
|
| MD5 |
90c83b616745f91d3f107471ce3b2f07
|
|
| BLAKE2b-256 |
243c0103b31f86d6e086beebdf09b0eaeb35462c31dc131c98f3f6da674ddbad
|