https://apistack.vn/v1

← All applications · Connect apps section on /docs

OpenAIManual setup

LlamaIndex

LlamaIndex: hướng dẫn đặt URL cơ sở và khóa API trong mã tích hợp.

Published instructions · App version: unverified

Chat, ping, invoke and content-generation examples may send real billable requests. Check the model, balance, rate and minimum before running them. GET /v1/models checks authentication and the catalogue only. Set up environment variables safely

Base URL to paste

OpenAI SDKs generally use a URL ending in /v1; Anthropic SDKs use the root URL. Avoid adding /v1 twice. Protocol compatibility does not guarantee every provider feature.

https://apistack.vn/v1

Prerequisites

  1. pip install llama-index-llms-openai-like

Recommended model: claude-fable-5

Quick way — command / config

import os
from llama_index.llms.openai_like import OpenAILike

llm = OpenAILike(
    model="claude-fable-5",
    api_base="https://apistack.vn/v1",
    api_key=os.environ["API_KEY"],
    context_window=1000000,
    is_chat_model=True,
)
print(llm.complete("Hello!"))

Where to place file / fill Settings

Environment variableany
API_KEY
Đặt API_KEY trong môi trường tiến trình Python theo mục Bắt đầu nhanh. File .env không được tự nạp; không đưa key lên Git.

Verify connection

  1. complete() trả text

Troubleshooting

SymptomReasonHow to handle
Connection errorapi_base thiếu /v1.api_base="https://apistack.vn/v1"

Related

LangChain

Support