Skip to main content

OpenAI Translate

PyPI version License: MIT Python 3.8+

Translate text with OpenAI's ChatGPT Translate — no login, no API key required.

Features

  • No authentication or API keys needed
  • Automatic source language detection
  • 50+ languages supported
  • Lightweight: only depends on requests

Installation

pip install openai-translate

Usage

from openai_translate import OpenAITranslate

t = OpenAITranslate()

t.translate("Hello world", target="es", source="en")
# Hola mundo

t.translate("مرحبا بالعالم", target="en")
# Hello world (source auto-detected)

t.translate("Good morning", target="ar", source="en")
# صباح الخير

translate(text, target="en", source="detect")

Argument Description Default
text Text to translate —
target Target language code (e.g. es) "en"
source Source language code, or "detect" "detect"

How it works

The library replicates the public web flow of chatgpt.com/translate, handling the session bootstrap and request handshake automatically — everything is extracted at runtime, nothing for you to configure.

License

MIT

Metadata

Release files for openai-translate 1.0.2

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

Source distribution (sdist)

Source distribution for openai-translate 1.0.2
File Size Uploaded
openai_translate-1.0.2.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for openai-translate 1.0.2
File Interpreter ABI Platform
openai_translate-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.6 kB

Release files / openai_translate-1.0.2.tar.gz

Download URL openai_translate-1.0.2.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6f8cdf1b353704a9e527bb1307e70f6159c0c514c714405ede9453aa8bc84166
BLAKE2b-256 checksum
How to use checksums
c5698fb04f535b2a69b2ac3c3b0a3365013f79ef1a6537228d1e0be0879ee3d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / openai_translate-1.0.2-py3-none-any.whl

Download URL openai_translate-1.0.2-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e20ed9748557154c9ee5c86116f2e13d92f96be11648e904994cd0c2feb16f5d
BLAKE2b-256 checksum
How to use checksums
2b056f1819d48b87c76780ea65c6c2c95ca279009a58699e76c529b76547db50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

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