client sdks/Frameworks & RAG

LlamaIndex Integration

Index documents and execute RAG queries using Unlocked AI.


LlamaIndex Client Setup

from llama_index.llms.openai import OpenAI

llm = OpenAI(
    api_base="https://unlockedai.net/v1",
    api_key="<YOUR_UNLOCKED_API_KEY>",
    model="claude-sonnet-5.5",
)

response = llm.complete("Summarize the benefits of vector embeddings.")
print(response)

Need an Unlocked AI Key or Credits?

Generate secret API keys backed by non-expiring pay-as-you-go credits starting at $5. No monthly minimums.