Skip to main content

Python client for Orionac AI API

Project description

Orionac AI Python SDK

Orionac AI Logo

The official Python package to access the full power of Theta-1.0-sl directly in your application.

Introduction Welcome to the orionac-ai Python SDK! This package provides a simple, straightforward, and powerful way to integrate the Orionac AI Theta models into your Python applications.

Installation The quickest way to get started is by installing our official Python package using pip.

pip install orionac-ai

Quickstart Using the SDK is designed to be intuitive. Authenticate with your API key and start generating content in just a few lines of code.

example.py

from orionac_ai import Theta

Authenticate with your API key

You can also set the ORIONAC_API_KEY environment variable

theta = Theta(api_key="YOUR_API_KEY")

Generate sales content

response = theta.generate( prompt="Draft a follow-up email to a prospect we spoke with.", context={ "prospect_name": "Jane Doe", "last_contact": "2 days ago", "topic": "Our new AI analytics platform" } )

Print the generated text

print(response.text)

Access other response data

print(f"\nModel Used: {response.model_used}") print(f"Total Tokens: {response.total_tokens}")

Expected Output Subject: Following Up

Hi Jane Doe,

Just wanted to quickly follow up on our conversation from 2 days ago regarding our new AI analytics platform. Let me know if you have any further questions!

Best regards, [Your Name]

Model Used: theta-1.0-sl Total Tokens: 85

Advanced Usage The generate method comes with over 20 parameters to give you fine-grained control over the output.

response = theta.generate( prompt="Generate three creative taglines for a coffee shop.",

--- Control Parameters ---

temperature=0.9, max_tokens=100, stop_sequences=["\n4."],

--- Custom Attributes ---

tone="witty", response_length="short" )

print(response.text)

Contributing Contributions are welcome! Please feel free to submit a pull request or open an issue.

License This project is licensed under the MIT License.

Project details


Download files

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

Source Distribution

orionac_ai-0.2.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

orionac_ai-0.2.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file orionac_ai-0.2.0.tar.gz.

File metadata

  • Download URL: orionac_ai-0.2.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for orionac_ai-0.2.0.tar.gz
Algorithm Hash digest
SHA256 dba9ecee1453ba5cf40fc3c880d43dfaba0f5b1a2ca4ffa8426c223c3b921f62
MD5 f2c5dfefb0a08828dfb96b862f2f3811
BLAKE2b-256 863d1e3af86cbe5bb15c52f79f1cc2cdef094a361af02b3143e9ccb19c047ccc

See more details on using hashes here.

File details

Details for the file orionac_ai-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: orionac_ai-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for orionac_ai-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52100aa3eb41e33c7c98d87a1c63de9749a55ba30ca496bd29daca5542b5c4e5
MD5 322e454157e4644851c36e20c4650911
BLAKE2b-256 e9833375774406d38f78eee1f4f7c5487dd034018ad151950526c047ea98a60d

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 Pingdom Monitoring Sentry Error logging StatusPage Status page