Cut.Pro Python SDK: Seedance, Wan, Kling, Veo and Nano Banana API in Python
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()withoutcreditsquotes first and agrees to that total. Withcredits, the price is checked on the server: if it changed, nothing is charged and you getPRICE_CHANGEDwith the new total inextra["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()
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-Keyheader, never in a URL, and redirects are refused so it never follows one to another host.repr(client)never shows it. base_urlmust behttps, except on localhost.generations.createsends anIdempotency-Key(a fresh UUID unless you pass one), so a retry or a repeated call never charges twice.- Network errors,
429and5xxare retried twice with backoff, honoringRetry-After; uploads are never retried. - Waiting uses the server's long poll instead of hammering it.
Links
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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cutpro-0.1.1.tar.gz | 15.7 kB | Without provenance | Details for cutpro-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cutpro-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for cutpro-0.1.1-py3-none-any.whl |
Total release size: 29.9 kB
Release files / cutpro-0.1.1.tar.gz
| Download URL | cutpro-0.1.1.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b51feeaf697f58d8de9f8df60f6ae06b377276880189fe9693830b4677525d2
|
|
BLAKE2b-256 checksum How to use checksums |
7c26092d2b3cd1d5071ae493905c79c084b301f54fcf5b833de1d08560cdd015
|
| 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.1-py3-none-any.whl
| Download URL | cutpro-0.1.1-py3-none-any.whl |
|---|---|
| Size | 14.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0c107cdb8eedb59f21627badfbc6789a968a2a9e5ccc28725a2d63b0fbf601bc
|
|
BLAKE2b-256 checksum How to use checksums |
d696539745dddf2c5393fd91d79b7e34915395d3758d7a99201ef4977dd9e1fa
|
| 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.1
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.