Skip to main content

A pip package to use ai model from FloxyLabs.eu with simple code

Project description

FlashyAPI

A simple Python package to interact with AI models from FloxyLabs.eu.

Installation

pip install flashyapi

Usage

Generate (Non-streaming)

import FlashyAPI

# Non-streaming response
FlashyAPI.generate(
    apiKey="your-api-key",
    model="model-name",
    prompt="Your question here",
    streaming=False
)

Generate (Streaming)

import FlashyAPI

# Streaming response
FlashyAPI.generate(
    apiKey="your-api-key",
    model="model-name",
    prompt="Your question here",
    streaming=True
)

Check Credits

import FlashyAPI

# Get your remaining credits
FlashyAPI.getCredits(apikey="your-api-key")

FAQ

How to get an API key?

Join our Discord and open a ticket to request an API key: https://discord.gg/Y6aVDdyfm7
You will receive 5,000 Credits for free.

What happens to my prompts?

Your prompts are sent to models hosted by FloxyLabs.eu. All data is secured and encrypted.

What data is published?

Your used model, token usage, and credit usage are logged to https://flashapi.floxylabs.eu/v1/activity for tracking purposes.

What are Credits?

Credits are the currency system from FloxyLabs. The formula is:
TOTAL_TOKENS × MODEL_MULTIPLIER = TOTAL_CREDITS

API Reference

  • Chat Completions: https://flashapi.floxylabs.eu/v1/chat/completions
  • Credits: https://flashapi.floxylabs.eu/v1/credits
  • Activity: https://flashapi.floxylabs.eu/v1/activity

Support

For support, join our Discord or visit FloxyLabs.

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

flashyapi-1.1.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

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

flashyapi-1.1.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file flashyapi-1.1.0.tar.gz.

File metadata

  • Download URL: flashyapi-1.1.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for flashyapi-1.1.0.tar.gz
Algorithm Hash digest
SHA256 e4a83ff3f3f7e2744708f47243865db3a1c37bfc7263d001af20da339f5fb35f
MD5 aa1430117581601ddc629f91c8378672
BLAKE2b-256 886515ee6fcc1cbe7307bb19a3e3e70c614b1d159557b5ae365e4227b6b4c292

See more details on using hashes here.

File details

Details for the file flashyapi-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: flashyapi-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for flashyapi-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 65d0ae8e7ad1370131d9691dfa124bbe688d1e93afddb7392fd6954c44c70d31
MD5 01d6e63588ded4eb40436929aaca052a
BLAKE2b-256 eeb516a9762e7165b9e8dffe9e1ec252709b810da84a7f6a5d8a545d328ebc33

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