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.0rc2.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.0rc2-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flashyapi-1.1.0rc2.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.0rc2.tar.gz
Algorithm Hash digest
SHA256 ae8bf7c8d2a816e956a20f0081e5786cd0420f467cc2169277c2dc0b0528ba7b
MD5 520ec0240ad97cb124db6eef8c2254f9
BLAKE2b-256 4917612871242f4db8081abfe4dde6b6cb14b097ace4cbf6f0a981b6527b85b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flashyapi-1.1.0rc2-py3-none-any.whl
  • Upload date:
  • Size: 2.7 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.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 f38bc85c06d59e66945bc2fcb0fbe86453ef18993c2267d5818351212f247475
MD5 4989b4aed63c40e6d504780888f23866
BLAKE2b-256 3f7d636a808745c574472c203d87d09d65ddd25d006600aca138c4adba004daf

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