Skip to main content

Cut.Pro Python SDK: Seedance, Wan, Kling, Veo and Nano Banana API in Python

PyPI license

One API key for video, image and voice models: Seedance 2.5, Wan 3, Kling O3, Veo 3.1, Gemini Omni Flash, Nano Banana Pro, Seedream 5, Qwen Image, GPT Image, Grok Imagine, MiniMax and Gemini TTS voices. Priced per second of video, per image or per 1,000 characters of voice, in reais and dollars: see the live price list. Pay with Pix or card; companies get an invoice.

Python 3.9 to 3.13, standard library only (no dependencies), fully typed (py.typed), sync and asyncio. A pure wheel, so it installs the same way in any environment:

pip install cutpro          # pip, virtualenv, Anaconda and Miniconda environments
uv add cutpro               # uv
poetry add cutpro           # Poetry
pdm add cutpro              # PDM
pipenv install cutpro       # Pipenv

Quickstart

Create a key at cut.pro/studio/me/api-keys and set CUTPRO_API_KEY. Every account starts with free credits.

from cutpro import CutPro

cutpro = CutPro()  # reads CUTPRO_API_KEY

video = cutpro.generations.generate(
    model="bytedance/seedance-2.5",
    prompt="a golden retriever surfing a wave at sunset, cinematic",
    seconds=5,
    resolution="720p",
    aspect_ratio="16:9",
)
print(video["output"]["url"], video["credits_charged"], "credits")

generate() quotes the request, starts it with the quoted total and waits until it is ready. Each step is also its own call.

Seedance API in Python, step by step

import uuid

quote = cutpro.generations.quote(model="bytedance/seedance-2.5", prompt="a dog surfing", seconds=5)
print(quote["credits"], "credits")  # show the price and wait for a yes

started = cutpro.generations.create(
    model="bytedance/seedance-2.5",
    prompt="a dog surfing",
    seconds=5,
    credits=quote["credits"],
    idempotency_key=str(uuid.uuid4()),
)

done = cutpro.generations.wait(started["id"], timeout=600)
if done["status"] == "ready":
    print(done["output"]["url"])
  • create() without credits quotes first and agrees to that total. With credits, the price is checked on the server: if it changed, nothing is charged and you get PRICE_CHANGED with the new total in extra["credits"].
  • idempotency_key: repeating the same request with the same key within 24 hours never charges twice.
  • webhook_url="https://..." gets a signed POST when the generation ends, instead of waiting.

Wan 3 image to video

clip = cutpro.generations.generate(
    model="alibaba/wan-3",
    mode="image",
    image_urls=["https://your-cdn.com/product.jpg"],
    prompt="the camera slowly orbits the product, soft studio light",
    seconds=5,
    resolution="720p",
)

Local file? media = cutpro.media.upload(open("product.jpg", "rb").read(), filename="product.jpg", content_type="image/jpeg") and send image_ids=[media["id"]].

Nano Banana Pro image with references

image = cutpro.generations.generate(
    model="google/nano-banana-pro",
    mode="references",
    image_urls=["https://your-cdn.com/person.jpg", "https://your-cdn.com/jacket.jpg"],
    prompt="the person from the first image wearing the jacket from the second, street photo",
    aspect_ratio="4:5",
)

Gemini TTS voice

voices = cutpro.models.list(id="google/gemini-3.1-flash-tts")["models"][0]["voices"]
print([voice["id"] for voice in voices])

voice = cutpro.generations.generate(model="google/gemini-3.1-flash-tts", voice="Kore", prompt="Welcome to Cut.Pro. Your video is ready.")
print(voice["output"]["url"])  # MP3

Models and prices

catalog = cutpro.models.list(kind="video", endpoint="generations")
featured = cutpro.models.featured(kind="image")

# Public price list, no key needed: credits, dollars and reais per unit.
prices = CutPro().models.prices()
Kind Model ids
Video bytedance/seedance-2.5, bytedance/seedance-2, alibaba/wan-3, kling/kling-o3-pro, kling/kling-3-pro, google/veo-3.1, google/gemini-omni-flash-1.1, xai/grok-imagine-video-1.5, minimax/h3
Image google/nano-banana-pro, bytedance/seedream-5-pro, alibaba/qwen-image-3-pro, openai/gpt-image-2.5, xai/grok-imagine-image-2
Voice google/gemini-3.1-flash-tts, minimax/speech-2.8-hd

The full catalog is in models.list() and at cut.pro/en/models. Prices change: read them from the API, never hard-code them.

Errors

from cutpro import CutProError

try:
    cutpro.generations.generate(model="bytedance/seedance-2.5", prompt="a dog surfing", seconds=3)
except CutProError as error:
    if error.code == "INSUFFICIENT_CREDITS":
        print("Top up at", error.extra["top_up_url"])
    elif error.code == "SECONDS_INVALID":
        print("Allowed seconds:", error.extra["allowed"])
    else:
        raise

code is stable, status is the HTTP status and extra has what to act on. status is 0 for errors raised by the client: WAIT_TIMEOUT, INSECURE_BASE_URL, INSECURE_DOWNLOAD_URL, or a generation that ended failed (its error_code becomes code, and the credits come back on their own). Full list in the error catalog.

asyncio

AsyncCutPro has the same methods. Waiting never blocks the event loop, so FastAPI, aiohttp or a Jupyter notebook can run many generations at once.

import asyncio
from cutpro import AsyncCutPro

async def main() -> None:
    cutpro = AsyncCutPro()
    videos = await asyncio.gather(*(cutpro.generations.generate(model="bytedance/seedance-2-fast", prompt=p, seconds=5) for p in ["a dog surfing", "a cat skating"]))
    print([video["output"]["url"] for video in videos])

asyncio.run(main())

Download to a file

cutpro.generations.download_to(video["id"], "dog.mp4")  # streams to disk, never holds the whole file in memory

Webhooks

from cutpro import verify_webhook

secret = cutpro.generations.webhook_secret()  # store it with your other secrets

# In your webhook route, with the raw body before any JSON parsing:
if not verify_webhook(raw_body, headers.get("CutPro-Signature"), secret):
    return 401

It checks the HMAC of the exact body, refuses signatures older than five minutes and compares in constant time.

A browser app on your Python server

The key spends credits, so it never goes to a page. proxy_request forwards only what a generation needs (models, prices, quote, create, get) with the key added on your server. With FastAPI:

from fastapi import FastAPI, Request, Response
from cutpro import proxy_request

app = FastAPI()

@app.api_route("/api/cutpro/{path:path}", methods=["GET", "POST"])
async def cutpro_proxy(path: str, request: Request) -> Response:
    if not is_signed_in(request):  # whoever reaches this route spends your credits
        return Response(status_code=401)
    status, body = proxy_request(request.method, f"/{path}", body=await request.body(), headers=dict(request.headers), query=request.url.query)
    return Response(body, status_code=status, media_type="application/json")

The page uses the JavaScript SDK with new CutPro({ baseURL: "/api/cutpro" }).

Options

CutPro(
    api_key="...",          # defaults to CUTPRO_API_KEY
    workspace_id="...",     # only for a key that reaches more than one workspace
    base_url="https://api.cut.pro/api/v1",
    timeout=90.0,           # seconds per HTTP request
    max_retries=2,
    transport=my_transport, # (method, url, headers, body, timeout) -> (status, headers, body): plug in httpx or requests, or stub it in tests
)

Security and reliability

  • The key only travels in the X-Api-Key header, never in a URL, and redirects are refused so it never follows one to another host. repr(client) never shows it.
  • base_url must be https, except on localhost.
  • generations.create sends an Idempotency-Key (a fresh UUID unless you pass one), so a retry or a repeated call never charges twice.
  • Network errors, 429 and 5xx are retried twice with backoff, honoring Retry-After; uploads are never retried.
  • Waiting uses the server's long poll instead of hammering it.

Em português

Instala igual com pip, uv, Poetry, PDM, Pipenv e em ambientes Anaconda ou Miniconda (pip install cutpro). Tem cliente síncrono e assíncrono (AsyncCutPro), verificação de webhook e proxy para usar no navegador sem expor a chave.

SDK oficial da Cut.Pro para Python: uma chave de API para Seedance 2.5, Wan 3, Kling O3, Veo 3.1, Nano Banana Pro, Seedream 5, GPT Image, Grok Imagine, MiniMax e vozes do Gemini TTS. Preço por segundo de vídeo, por imagem ou por 1.000 caracteres de voz, em reais: veja a tabela de preços ao vivo. Pague com Pix ou cartão, com nota fiscal para empresas. Toda conta começa com créditos grátis.

from cutpro import CutPro

cutpro = CutPro()  # lê CUTPRO_API_KEY
voz = cutpro.generations.generate(model="google/gemini-3.1-flash-tts", voice="Kore", prompt="Olá! Seu vídeo está pronto.")
print(voz["output"]["url"])

Crie a chave em cut.pro/studio/me/api-keys. Guia em português: cut.pro/docs/generations. Páginas dos modelos: Seedance 2.5, Wan 3, Nano Banana Pro, Gemini 3.1 Flash TTS.

License

MIT

Metadata

Release files for cutpro 0.1.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 cutpro 0.1.0
File Size Uploaded Provenance Actions
cutpro-0.1.0.tar.gz 15.7 kB Without provenance Details for cutpro-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cutpro 0.1.0
File Interpreter ABI Platform Actions
cutpro-0.1.0-py3-none-any.whl Python 3 none any Details for cutpro-0.1.0-py3-none-any.whl

Total release size: 29.8 kB

Release files / cutpro-0.1.0.tar.gz

Download URL cutpro-0.1.0.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3904d702fdbfbd0ba560d6cdba11778e1d7e15c1e1092c1a61266233c6af02aa
BLAKE2b-256 checksum
How to use checksums
8fd9ea2b5f77d65ff6ac9e797d7ef6615177061c38067f3ce3c392225e3a371e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / cutpro-0.1.0-py3-none-any.whl

Download URL cutpro-0.1.0-py3-none-any.whl
Size 14.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6857495b1f533c904fc178313ada7d81245260feffe99f1bdb2ddb236e7f6ee5
BLAKE2b-256 checksum
How to use checksums
5b552a9ae836fa547615e9b903b627339f7e9616deb50939d1aceee365239fe1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for cutpro 0.1.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.

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