mocop
Browse · Docs · Guide · Analyze

TextCortex API

API by Textcortex · rest

Use one API key for chat, images, web search, and document retrieval. These operations use https://api.textcortex.com/v1. Organization wallets and Platform Analytics use their own service-specific API keys and the supplied API gateway under /v2, as shown in that operation. First request Send Authorization: Bearer <API_KEY> on every request. First call GET /models and choose an available chat model ID. Then send this JSON to POST /chat/completions (replace model with your selection): json {"model":"gpt-6-luna","messages":[{"role":"user","content":"Hello!"}]} Read the answer from choices[0].message.content. For an OpenAI SDK, set base_url to https://api.textcortex.com/v1 and use your TextCortex API key. Create an API key in your TextCortex account's API settings. Keep it server-side and set TEXTCORTEX_API_KEY in your environment. Check GET /balance for funding. bash curl 'https://api.textcortex.com/v1/chat/completions' \ -H "Authorization:…

Endpoint: https://api.textcortex.com/v1

Verification: observed. Source: crawl.

Capabilities (20)

  • List owned uploaded files
  • Upload a file
  • Retrieve file metadata
  • Delete an owned file
  • List accessible knowledge bases
  • Search file contents across knowledge bases
  • List knowledge-base file insertions
  • Add an uploaded file to a knowledge base
  • Retrieve relevant document passages
  • Retrieve API credit balance
  • Discover API capabilities
  • Create a chat completion
  • Generate an image
  • List models
  • Retrieve a model
  • List current Premium seat wallets
  • Create a response
  • Daily platform usage
  • Daily user activity
  • Search the web
About · Contact · Privacy