Plutoniium AI SDK - Python API Client
Project description
Plutoniium Python SDK
The official Python client for the Plutoniium AI Platform.
Plutoniium provides fast, modern, developer-friendly AI models that you can use for chatbots, assistants, automation, and AI-powered applications.
This SDK allows seamless integration of Plutoniium models into Python projects with an OpenAI-style API.
👉 Website: https://plutoniium.com
👉 Dashboard & API Keys: https://plutoniium.com
👉 Documentation: https://plutoniium.com/developer-docs
Installation
Install the SDK using pip:
pip install plutoniium
Requires Python 3.8+.
Getting an API Key
- Visit https://plutoniium.com
- Sign in or create an account
- Navigate to API Keys
- Create a new key
- Set it in your environment:
export PLUTONIIUM_API_KEY="your_api_key_here"
Quick Start — Chat Completion Example
from plutoniium import Plutoniium
import os
client = Plutoniium(
api_key=os.getenv("PLUTONIIUM_API_KEY")
)
response = client.chat(
model="plutoniium-1",
messages=[
{"role": "user", "content": "Explain artificial intelligence in simple words."}
]
)
print(response["choices"][0]["message"]["content"])
Chat API
Send messages to a Plutoniium model:
response = client.chat(
model="plutoniium-1",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "What is machine learning?"}
]
)
print(response["choices"][0]["message"]["content"])
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
model |
string |
✔ | Model ID to use |
messages |
list[dict] |
✔ | Chat messages (role, content) |
Message Format
{
"role": "user",
"content": "Hello!"
}
List Available Models
models = client.list_models()
print(models["data"])
Example response:
{
"data": [{ "id": "plutoniium-1" }, { "id": "plutoniium-chat" }]
}
SDK Features
- ✔ Official Plutoniium Python Client
- ✔ OpenAI-style API
- ✔ Simple & powerful chat interface
- ✔ Secure API key authentication
- ✔ Compatible with backend Python apps
- ✔ Works with FastAPI, Flask, Django, LangChain, etc.
Security Guidelines
- Never expose API keys in frontend code
- Store keys in environment variables
- Rotate keys regularly via your dashboard
- Always route client requests through your backend
Project Structure
plutoniium/
├─ __init__.py
└─ client.py
Requirements
- Python 3.8+
requestslibrary
Roadmap
- Streaming responses (
yield/ async) - Async client (
aiohttp) - Token usage & cost reporting
- More model families
- Tools / function calling support
Follow updates at: https://plutoniium.com
License
MIT License © Plutoniium
https://plutoniium.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file plutoniium-0.1.0.tar.gz.
File metadata
- Download URL: plutoniium-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a35493c7947919362c00fb47ec4219f5f71533cddb61d66ce66133e9bb829853
|
|
| MD5 |
17cc8fc7c7118b1abb718578bbcf52a8
|
|
| BLAKE2b-256 |
977f7783b3dbb3734eda2a804ddd55b229cf8cff5d1b555bdc3dfb02932c85c0
|
File details
Details for the file plutoniium-0.1.0-py3-none-any.whl.
File metadata
- Download URL: plutoniium-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
765cb12a24e0af96ebfba66c866837bd689549a543c9520c6319030de6506ee9
|
|
| MD5 |
d996bac75c66a9de7393e9e0779114d7
|
|
| BLAKE2b-256 |
0e7cf7d50eae1629aca8ef6fe573dbbb2eb5255b4ffdbfc4373d7e1786c4ff68
|