Skip to main content

Aether AI SDK

Official Python SDK for Aether AI - Chat with AI models and generate images via streaming API.

Installation

pip install aether-ai-sdk

Getting Your API Key

  1. Visit https://aiaether.ai.studio
  2. Sign up or log in to your account
  3. Navigate to Settings > API Keys
  4. Click Create New Key
  5. Copy your API key (starts with at_live_)

Quick Start

from aether_ai_sdk import AI

# Initialize client with your API key
client = AI(api_key="at_live_your_api_key_here")

# Send a message
response = client.chat.create(
    model="DeepSeek-R1-Distill-Llama-8B-OpenSource",
    messages=[{"role": "user", "content": "Hello, how are you?"}]
)
print(response.output_text)

Chat

Create a Conversation

from aether_ai_sdk import AI

client = AI(api_key="at_live_your_api_key_here")

# Create a new conversation
conversation = client.chat.conversations.create(
    model="DeepSeek-R1-Distill-Llama-8B-OpenSource",
    system_prompt="You are a helpful assistant."
)

print(f"Conversation ID: {conversation.id}")

Send a Message

# Send a message to an existing conversation
response = client.chat.messages.create(
    conversation.id,
    content="What is Python?"
)
print(response.output_text)

List Conversations

# List all conversations
conversations = client.chat.conversations.list()

for conv in conversations:
    print(f"{conv.title} - {conv.model}")

Stream Responses

# Stream a response
conversation = client.chat.conversations.create(
    model="DeepSeek-R1-Distill-Llama-8B-OpenSource"
)

for event in client.chat.messages.stream(conversation.id, content="Tell me a story"):
    if event.type == "delta":
        print(event.chunk, end="", flush=True)

Image Generation

Generate an Image

from aether_ai_sdk import AI

client = AI(api_key="at_live_your_api_key_here")

# Generate an image
response = client.images.generate(
    prompt="A sunset over mountains",
    aspect_ratio="16:9",  # Options: 1:1, 16:9, 9:16, 4:3, 3:4
    enhance=True  # Uses Gemini 3.6 Flash prompt enhancer
)

print(f"Image URL: {response.image_url}")
print(f"Enhanced Prompt: {response.enhanced_prompt}")

Image Generation Options

Parameter Type Default Description
prompt str required Description of the image to generate
aspect_ratio str "1:1" Image dimensions: 1:1, 16:9, 9:16, 4:3, 3:4
enhance bool False Enhance prompt using Gemini 3.6 Flash
conversation_id str None Link to a conversation for context

Configuration

from aether_ai_sdk import AI

client = AI(
    api_key="at_live_your_api_key_here",
    base_url="https://aiaether.ai.studio",  # Default
    timeout=60.0,                           # Request timeout in seconds
    max_retries=2                           # Number of retry attempts
)

Environment Variables

You can also configure the client using environment variables:

export AI_API_KEY="at_live_your_api_key_here"
export AI_BASE_URL="https://aiaether.ai.studio"
export AI_TIMEOUT="60.0"
export AI_MAX_RETRIES="2"
from aether_ai_sdk import AI

# Will use environment variables
client = AI()

Available Models

  • DeepSeek-R1-Distill-Llama-8B-OpenSource

Visit https://aiaether.ai.studio for the latest list of available models.

Error Handling

from aether_ai_sdk import AI, AuthenticationError, RateLimitError

try:
    client = AI(api_key="invalid_key")
    response = client.chat.create(
        model="DeepSeek-R1-Distill-Llama-8B-OpenSource",
        messages=[{"role": "user", "content": "Hello"}]
    )
except AuthenticationError as e:
    print(f"Invalid API key: {e}")
except RateLimitError as e:
    print(f"Rate limit exceeded: {e}")
except Exception as e:
    print(f"Error: {e}")

Links

License

MIT

Metadata

Release files for aether-ai-sdk 0.3.3

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

Source distribution (sdist)

Source distribution for aether-ai-sdk 0.3.3
File Size Uploaded Provenance
aether_ai_sdk-0.3.3.tar.gz 9.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aether-ai-sdk 0.3.3
File Interpreter ABI Platform
aether_ai_sdk-0.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 20.4 kB

Release files / aether_ai_sdk-0.3.3.tar.gz

Download URL aether_ai_sdk-0.3.3.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7e841c63f91b066e9f36dc2d258f8a1d7ce14214b7483f07c6a1b603b5236620
BLAKE2b-256 checksum
How to use checksums
36f8124b5222336f5c4a0e6fabd152189e628a80809825202f2957cf613e0ff7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / aether_ai_sdk-0.3.3-py3-none-any.whl

Download URL aether_ai_sdk-0.3.3-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4fd3cf1faffcedec4ea7fd0413b796420e1953e299440033da95897636db946e
BLAKE2b-256 checksum
How to use checksums
57a20e52b491d199fdca73518793951fbef3f5d444b7e57229507b53d959a493
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Security for aether-ai-sdk 0.3.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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