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

Download files

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

Source Distribution

aether_ai_sdk-0.3.3.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

aether_ai_sdk-0.3.3-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file aether_ai_sdk-0.3.3.tar.gz.

File metadata

  • Download URL: aether_ai_sdk-0.3.3.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for aether_ai_sdk-0.3.3.tar.gz
Algorithm Hash digest
SHA256 7e841c63f91b066e9f36dc2d258f8a1d7ce14214b7483f07c6a1b603b5236620
MD5 e913e7ba4d68830d5b28650f3d8fb79a
BLAKE2b-256 36f8124b5222336f5c4a0e6fabd152189e628a80809825202f2957cf613e0ff7

See more details on using hashes here.

File details

Details for the file aether_ai_sdk-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: aether_ai_sdk-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for aether_ai_sdk-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4fd3cf1faffcedec4ea7fd0413b796420e1953e299440033da95897636db946e
MD5 9834f41324f9d6d5946404e78c12acb1
BLAKE2b-256 57a20e52b491d199fdca73518793951fbef3f5d444b7e57229507b53d959a493

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page