Skip to main content

A Python package for interacting with OpenAI and runpod APIs via Dyphira proxy server.

Project description

🚀 Dyphira Python

Dyphira Banner

Seamlessly access OpenAI's powerful AI capabilities through our optimized proxy service!

Dyphira Python provides a streamlined, cost-effective way to integrate cutting-edge AI into your applications with minimal setup and maximum performance.

✨ Why Choose Dyphira?

  • 🔥 Optimized Performance - Faster response times through our dedicated proxy
  • 💰 Cost Efficiency - Reduce your API costs while maintaining quality
  • 🛡️ Enhanced Reliability - Built-in error handling and retry mechanisms
  • 🔌 Drop-in Compatibility - Mirrors the OpenAI API for seamless integration

📦 Installation

pip install dyphira

🚀 Quick Start

from dyphira import OpenAI

# Connect to the Dyphira proxy with your API key
ai = OpenAI(api_key="your-api-key")

# Start creating AI magic!
response = ai.chat_completions(
    model="gpt-4",
    messages=[
        {"role": "system", "content": "You are a brilliant marketing copywriter."},
        {"role": "user", "content": "Write a tagline for a new AI-powered coffee maker."}
    ]
)

print(response["choices"][0]["message"]["content"])

🛠️ Powerful Features

💬 Conversational AI

Create dynamic, context-aware conversations with the most advanced language models.

response = ai.chat_completions(
    model="gpt-3.5-turbo",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "What's the capital of France?"},
        {"role": "assistant", "content": "The capital of France is Paris."},
        {"role": "user", "content": "And what's its most famous landmark?"}
    ]
)

🎨 Image Generation

Transform your ideas into stunning visuals with a simple prompt.

response = ai.images_generations(
    prompt="A futuristic cityscape with flying cars and neon lights",
    model="dall-e-3",
    size="1024x1024",
    quality="hd"
)

🔊 Audio Processing

Convert speech to text and text to speech with remarkable accuracy.

# Transcribe audio
transcript = ai.audio_transcriptions(
    file="interview.mp3",
    model="whisper-1"
)

# Generate speech
speech = ai.audio_speech(
    model="tts-1",
    input="Welcome to the future of AI integration!",
    voice="alloy"
)

🧠 Embeddings & Analysis

Extract semantic meaning from text for advanced analysis and search.

embeddings = ai.embeddings(
    model="text-embedding-ada-002",
    input=["Dyphira makes AI integration effortless", "AI solutions for modern applications"]
)

📊 Enterprise Solutions

Dyphira offers enterprise-grade solutions with:

  • 🔒 Enhanced Security
  • Higher Rate Limits
  • 🌐 Dedicated Infrastructure
  • 👨‍💼 Priority Support

Contact us for enterprise pricing and custom solutions.

📚 Documentation

For comprehensive documentation and advanced usage examples, visit our documentation site.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


Powered by Dyphira - Unlocking AI's Potential
GitHubReport Issues

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

dyphira-0.1.2.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

dyphira-0.1.2-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file dyphira-0.1.2.tar.gz.

File metadata

  • Download URL: dyphira-0.1.2.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for dyphira-0.1.2.tar.gz
Algorithm Hash digest
SHA256 947109c0aa63c0ac85e756304b603d6332a348296976dc9d0c951f7660c44aed
MD5 7e3b0169f3629c71d2f65d3d30baa004
BLAKE2b-256 d2d433906b25025262d1e2b19e08e6b0f30b6bc31d83d8558e577bd67c020339

See more details on using hashes here.

File details

Details for the file dyphira-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: dyphira-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for dyphira-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 67338ae9d86388e5839580141fcbe7c7368d8bd7c3d55076cbb99e4702c38383
MD5 b5d093cd4b23bc8d9fac134e03a1258e
BLAKE2b-256 15276eed5503dea5147f61a37a5836ae302c19f82b18f7ab3184b11b2e9f6350

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