Skip to main content

ChatAIBotPro-API

Unofficial async Python client for chataibot.pro.

Disclaimer: This library reverse-engineers the chataibot.pro browser API. It is not affiliated with or endorsed by chataibot.pro.

Installation

pip install chataibotpro-webapi

Authentication

Get your JWT token from the token cookie after logging in at chataibot.pro.

import asyncio
from chataibotpro_webapi import ChatAIBotProClient

async def main():
    async with ChatAIBotProClient("YOUR_JWT_TOKEN") as client:
        async for chunk in client.stream_message("Hello!"):
            print(chunk.delta, end="", flush=True)
        print()

asyncio.run(main())

Usage

Single-turn (non-streaming)

r = await client.send_message("What is the capital of Poland?")
print(r.text)

Streaming

async for chunk in client.stream_message("Write me a haiku."):
    print(chunk.delta, end="", flush=True)
print()

Multi-turn session

chat = client.start_chat()
r1 = await chat.send("My name is Alice.")
r2 = await chat.send("What is my name?")
print(r2.text)  # "Your name is Alice."

# Streaming within a session
async for chunk in chat.stream("Tell me a story."):
    print(chunk.delta, end="", flush=True)

Image generation

from chataibotpro_webapi import ImageModel

img = await client.generate_image(
    "A golden sunset over Warsaw, oil painting",
    model=ImageModel.FLUX_PRO,
)
await img.save("./outputs")

Video generation

from chataibotpro_webapi import VideoModel

video = await client.generate_video(
    "A drone shot flying over Warsaw at sunset",
    model=VideoModel.KLING_2_6_PRO,
    duration="5",
)
await video.save("./outputs")

# Image to video
video2 = await client.image_to_video(
    "https://example.com/frame.jpg",
    prompt="Camera slowly pans left",
)

Gallery

images = await client.get_image_gallery()
videos = await client.get_video_gallery()

for item in images:
    await item.save("./gallery")

File upload

rec = await client.upload_file("report.pdf")
r   = await client.send_message("Summarise this document.")

Token estimation

usage = await client.calculate_tokens("Write me an essay", model="gpt-4.1-nano")
print(usage.token_count, usage.credit_cost)

Pricing

prices = await client.get_subscription_prices()
tariff = await client.get_subscription_tariff()

User info

user = await client.get_current_user()
print(user.email, user.plan)

stats = await client.get_answers_count()

API Reference

Method Description
stream_message(text, ...) Stream a chat response
send_message(text, ...) Send message, collect full response
start_chat(model, ...) Create a ChatSession
create_context(title, model) Create server-side chat thread
get_context(chat_id) Fetch chat metadata
calculate_tokens(text, ...) Estimate token cost
change_context_model(chat_id, model) Change model for a chat
get_chat_messages(chat_id) Fetch message history
generate_image(prompt, model, ...) Generate image
generate_video(prompt, model, ...) Generate video
image_to_video(image_url, prompt, ...) Animate image to video
get_gallery(...) Fetch media gallery
get_image_gallery(...) Images only
get_video_gallery(...) Videos only
upload_file(file_path, ...) Upload & parse file
get_current_user() Fetch user profile
get_answers_count() Fetch usage stats
get_subscription_prices(...) Fetch pricing
get_subscription_tariff(...) Fetch tariff details
get_telegram_link(...) Get Telegram deep-link
landing_hello() Ping / landing data
logout() Invalidate server session

License

MIT

Metadata

Release files for chataibotpro-webapi 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chataibotpro-webapi 1.0.1
File Size Uploaded Provenance Actions
chataibotpro_webapi-1.0.1.tar.gz 15.6 kB With provenance Details for chataibotpro_webapi-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chataibotpro-webapi 1.0.1
File Interpreter ABI Platform Actions
chataibotpro_webapi-1.0.1-py3-none-any.whl Python 3 none any Details for chataibotpro_webapi-1.0.1-py3-none-any.whl

Total release size: 33.2 kB

Release files / chataibotpro_webapi-1.0.1.tar.gz

Download URL chataibotpro_webapi-1.0.1.tar.gz
Size 15.6 kB
Tags Source
SHA-256 checksum
How to use checksums
13e3fadda16c654816e52e0c34da37353cd056e40e64f52286d040332ad57a0a
BLAKE2b-256 checksum
How to use checksums
5742a65b0cb50a40a84a94bd8d372d17ab46e7dad8754e5f08f0232194e9bf06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 28, 2026.

Transparency log

Release files / chataibotpro_webapi-1.0.1-py3-none-any.whl

Download URL chataibotpro_webapi-1.0.1-py3-none-any.whl
Size 17.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
09432f71532d775197f77fd0b1f92111576f0546c19cbf24cdcac8aa125820ae
BLAKE2b-256 checksum
How to use checksums
038671c94c3e217fe6eec1e0988f38a74a0c0eb8aaebd736262a0f8014fda81e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 28, 2026.

Transparency log

Security for chataibotpro-webapi 1.0.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for chataibotpro_webapi-1.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 28, 2026.

Transparency log

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

1.0.1 This release

2 release files Full 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