Official Eternium API SDK — AI image & video generation
Project description
eternium-sdk
Official Python SDK for the Eternium API -- AI image, video, chat, embeddings, and audio generation.
Install
pip install eternium-sdk
Quick Start
from eternium import Eternium
client = Eternium("etrn_your_key")
# Generate an image
image = client.image("A futuristic city at sunset")
print(image["url"])
# Generate a video
video = client.video("Ocean waves on rocks", model="veo-3", duration=5)
print(video["url"])
# Run a multi-step pipeline
pack = client.run_pipeline("social-media-pack", "Product on white background")
print(pack["results"])
Features
- 24 AI models (image, video, chat, embeddings, audio)
- Automatic polling until generation completes
- Built-in prompt caching (saves credits on repeated calls)
- Zero external dependencies (stdlib only)
- Python 3.8+
API
Eternium(api_key, base_url=None, poll_interval=3, timeout=300)
Methods
| Method | Description |
|---|---|
client.image(prompt, **kwargs) |
Generate an image |
client.video(prompt, **kwargs) |
Generate a video |
client.run_pipeline(name, prompt, **kwargs) |
Run a multi-step pipeline |
client.list_models() |
List available models |
client.list_pipelines() |
List pipelines |
client.list_tiers() |
Get pricing tiers |
client.get_usage() |
Check credit usage |
client.get_task_status(task_id) |
Poll task status |
client.get_download_url(task_id) |
Get download URL |
Options
result = client.image(
"A futuristic city",
model="nano-banana-2",
aspect_ratio="16:9",
cache=True, # Prompt caching (default: True)
wait=True, # Wait for completion (default: True)
)
OpenAI-Compatible
The Eternium API also supports OpenAI-compatible endpoints:
from openai import OpenAI
client = OpenAI(
api_key="etrn_your_key",
base_url="https://api.eternium.ai/v1",
)
chat = client.chat.completions.create(
model="gpt-5.1",
messages=[{"role": "user", "content": "Hello!"}],
)
License
MIT - Eternium LLC
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
eternium_sdk-1.0.0.tar.gz
(4.7 kB
view details)
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 eternium_sdk-1.0.0.tar.gz.
File metadata
- Download URL: eternium_sdk-1.0.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
794e659889ceca6d596816666da939939f641a39b612d08a95fd19bef9211e27
|
|
| MD5 |
6ea6135d85b0329da95fbd764f8ed510
|
|
| BLAKE2b-256 |
c43d5a8212cb3267b39f817af71fde0494d0ac3868d185f79dad83afb7ed66dd
|
File details
Details for the file eternium_sdk-1.0.0-py3-none-any.whl.
File metadata
- Download URL: eternium_sdk-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ce6dd7c26a8c1813869068eca6c33f07685d699d9e01e182cb8ba2a639bc034
|
|
| MD5 |
e27366d1e89f9b1efc98f2a1175be808
|
|
| BLAKE2b-256 |
1d97d4e5fffc8ee5b6d7ea6be5aa4bd7971edc1b6ab1f1cf4781fbbed41cbc5a
|