Skip to main content

GPT Image 2.6 Python SDK for RunAPI

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

Install

pip install runapi-gpt-image-2.6

Quick start

from runapi.gpt_image_2_6 import GptImage26Client

client = GptImage26Client()
task = client.text_to_image.create(
    model="gpt-image-2.6-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.6-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.6 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.6 0.2.0
File Size Uploaded Provenance Actions
runapi_gpt_image_2_6-0.2.0.tar.gz 8.0 kB Without provenance Details for runapi_gpt_image_2_6-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 17.7 kB

Release files / runapi_gpt_image_2_6-0.2.0.tar.gz

Download URL runapi_gpt_image_2_6-0.2.0.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4251a1f933d4d10479f5a0f1187475bf4c6dfaabfb412930df8e6c556c581b34
BLAKE2b-256 checksum
How to use checksums
fc0cefb713b76ad19bc0f8f0e4cd18b1d0969f41007b1b7ecf2f72bb75b8b559
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"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_6-0.2.0-py3-none-any.whl

Download URL runapi_gpt_image_2_6-0.2.0-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8bc877a45a4ca0e12d224d3fe81e25430a068fcdcfc7a8ad7023d25a0efc55bd
BLAKE2b-256 checksum
How to use checksums
7794158477ab1baf41247040b0ca35ff86c81aee6056e6e1b9e19b586229a761
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for runapi-gpt-image-2.6 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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