The call · without
Provider key in the agent. Close the process, not the spend.
import os
from elevenlabs.client import ElevenLabs
client = ElevenLabs(api_key=os.environ["ELEVEN_API_KEY"])
audio = client.text_to_speech.convert(
voice_id="JBFqnCBsd6RMkjVDRZzb",
text="The overnight batch finished.",
model_id="eleven_multilingual_v2",
)
The call · with
ft_live_ authenticates the tab. x-flocktab-unlock unwraps BYOK.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://proxy.flocktab.com/v1",
api_key=os.environ["FLOCKTAB_KEY"],
default_headers={
"x-flocktab-unlock": os.environ["FLOCKTAB_UNLOCK"],
},
)
chat = client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": "Summarize the batch."}],
max_tokens=128,
)