Skip to main content

Official Python SDK for Corent — one API for AI image, video, and voice generation with built-in routing, failover, and exact receipts.

Project description

Corent Python SDK

One API for AI image, video, and voice generation. You pick a quality tier; Corent's router picks the best live model, reroutes failures, verifies the output, and returns the exact charge on every response. Failed generations are never billed.

pip install corent
from corent import Corent

client = Corent("co_live_...")  # get a key at https://corent.tech

image = client.images.generate("a lighthouse at dusk", tier="premium", aspect_ratio="9:16")
print(image.url, image.width, image.height, image.cost_cents)

video = client.videos.generate("a paper boat drifting across a puddle",
                               tier="premium", duration_s=5, resolution="1080p")
print(video.url, video.resolution, video.cost_cents)

speech = client.speech.generate("Welcome to Corent.")
print(speech.url, speech.cost_cents)

What the SDK handles for you

  • Timeout-safe renders — images submit as background jobs and are polled; a network hiccup can never lose a finished (and billed) result.
  • Safe retries — every generate call carries an auto idempotency key; retries can never double-charge.
  • Backoff — 429/5xx are retried with Retry-After respected.
  • Honest receiptswidth/height are the measured pixels of the delivered file, and cost_cents is the exact charge.

Fine-grained control

job = client.images.generate("...", tier="max_pro", wait=False)  # returns immediately
job = client.jobs.wait(job.id)                                    # resume any time

client.tiers()          # live catalog with honest min-max price ranges
client.balance_cents()  # prepaid balance

Tiers: air | lite | premium | pro | max_pro — see corent.tech/pricing. Docs: corent.tech/docs.

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

corent-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

corent-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: corent-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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}

File hashes

Hashes for corent-0.1.0.tar.gz
Algorithm Hash digest
SHA256 929f40209bd9fa03bdefd3eb79e35ee497c16f0173aa5858c4873b0acd98abfb
MD5 45d9259ef459226a2194d6c2d82ca815
BLAKE2b-256 536a870ab5f2c47cd0bbc44010bf753ef3c3446bc3e417333fde8d9807cecfd2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: corent-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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}

File hashes

Hashes for corent-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b05a9192cdeca929bb6802e529e5b6e79a5317571ef62bf823899e6ea0b4618
MD5 02853bb60d6e468734d89aadbcaf7003
BLAKE2b-256 0182af4363e464041b7a124fd24b7a173e2e82ecd2e6de1533398a82a3da9ac5

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