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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4a83ff3f3f7e2744708f47243865db3a1c37bfc7263d001af20da339f5fb35f
|
|
| MD5 |
aa1430117581601ddc629f91c8378672
|
|
| BLAKE2b-256 |
886515ee6fcc1cbe7307bb19a3e3e70c614b1d159557b5ae365e4227b6b4c292
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65d0ae8e7ad1370131d9691dfa124bbe688d1e93afddb7392fd6954c44c70d31
|
|
| MD5 |
01d6e63588ded4eb40436929aaca052a
|
|
| BLAKE2b-256 |
eeb516a9762e7165b9e8dffe9e1ec252709b810da84a7f6a5d8a545d328ebc33
|