Skip to main content

Introduction

FunAI gives you one integration for the leading AI models: text, image, video, audio and 3D. You pick a model by its ID and pay from one prepaid API balance, instead of holding accounts and keys with every model maker.

What you can call​

How it works​

  1. Create an API key on the developer platform.
  2. Top up your API balance there (US dollars, $5 minimum). API calls are billed from this balance, which is separate from FunAI Studio plans and credits.
  3. Call https://api.funai.art with your key.
from openai import OpenAI

client = OpenAI(
base_url="https://api.funai.art/v1",
api_key="YOUR_FUNAI_API_KEY",
)

response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "How can I use FunAI in my app?"}],
)
print(response.choices[0].message.content)

Next: Authentication.