Skip to main content

OpenAI CLI

A command-line tool for OpenAI-compatible APIs via AceDataCloud.

Installation

pip install openai-pro-cli

Quick Start

1. Get an API Token

Sign up at https://platform.acedata.cloud and get your API token.

2. Configure

export ACEDATACLOUD_API_TOKEN=your_token_here

Or save it to a .env file:

cp .env.example .env
# Edit .env and set ACEDATACLOUD_API_TOKEN

3. Use

# Chat with a model
openai-cli chat "What is the capital of France?"

# Chat with a specific model
openai-cli chat "Explain quantum computing" -m gpt-5.4

# Generate embeddings
openai-cli embed "Hello, world!" -m text-embedding-3-small

# Generate an image
openai-cli image "A futuristic city skyline at night"

# Edit an image
openai-cli edit "Add a rainbow" --image-url https://example.com/photo.jpg

# Use the Responses API
openai-cli response "Summarize this article" -m gpt-4o

# Synthesize speech audio
openai-cli speech "Hello from AceDataCloud" --voice nova --output hello.mp3

# Show realtime WebSocket connection details
openai-cli realtime --model gpt-realtime

# Retrieve an async task result
openai-cli tasks retrieve --id 7489df4c-ef03-4de0-b598-e9a590793434
openai-cli tasks retrieve --trace-id my-custom-trace-001

# Retrieve a batch of task results
openai-cli tasks batch --trace-ids trace-001 trace-002

# List available models
openai-cli models

# Show configuration
openai-cli config

Commands

Command Description
chat Chat completions (/openai/chat/completions)
embed Text embeddings (/openai/embeddings)
image Image generation (/openai/images/generations)
edit Image editing (/openai/images/edits)
response Responses API (/openai/responses)
speech Speech synthesis (/v1/audio/speech)
realtime Realtime WebSocket connection info (/v1/realtime)
tasks retrieve Retrieve a single async task result (/openai/tasks)
tasks batch Retrieve multiple async task results (/openai/tasks)
models List available models (/openai/models)
config Show current configuration

Environment Variables

Variable Description Default
ACEDATACLOUD_API_TOKEN Your API token (required)
ACEDATACLOUD_API_BASE_URL API base URL https://api.acedata.cloud
OPENAI_REQUEST_TIMEOUT Request timeout in seconds 30

Docker

docker compose run --rm openai-cli chat "Hello!" -m gpt-4o

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openai_pro_cli-2026.8.24.0.tar.gz (25.3 kB view details)

Uploaded Source

Built Distribution

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

openai_pro_cli-2026.8.24.0-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

Details for the file openai_pro_cli-2026.8.24.0.tar.gz.

File metadata

  • Download URL: openai_pro_cli-2026.8.24.0.tar.gz
  • Upload date:
  • Size: 25.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for openai_pro_cli-2026.8.24.0.tar.gz
Algorithm Hash digest
SHA256 98c5c0d74003925cd2a40a0c56c91fc24bdb1610b796b9df8d82730de388231e
MD5 c61ef40aaa317e846ab661f98306abf4
BLAKE2b-256 6d662fab86805aca5653fd37efb713f591f7bfa430af849d3ef7d711d8a96929

See more details on using hashes here.

File details

Details for the file openai_pro_cli-2026.8.24.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openai_pro_cli-2026.8.24.0-py3-none-any.whl
Algorithm Hash digest
SHA256 904bb790463d81d7af081e72ee9c31a5bc8ce315ea846289626ae1a521da4361
MD5 4b5175d195515cea568884e9d9b34490
BLAKE2b-256 fec8f95c380f07e3f87fb8fec3cce246359bb8286d8e7158f5030636268a7a1a

See more details on using hashes here.

Release history Release notifications | RSS feed

2026.8.27.0

2 files

2026.8.25.0

2 files

This release

2026.8.24.0 This release

2 files

2026.8.16.0

2 files

2026.8.14.0

2 files

2026.8.11.0

2 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