OpenAI compatible completions
For generation workflows that do not need retrieval.
- input per 1M tokens
- $2
- output per 1M tokens
- $10
- Standard chat completion shape
- Streaming with server sent events
- Usage and spend monitoring
An OpenAI compatible API for chat, streaming, and retrieval over your own text, with structured citations on every grounded answer. HIPAA compliant* under a signed BAA.
from openai import OpenAI
client = OpenAI(
base_url="https://developer.council.health/v1",
api_key="YOUR_API_KEY",
)
response = client.chat.completions.create(
model="YOUR_MODEL_ID", # GET /v1/models lists yours
messages=[{
"role": "user",
"content": "Summarize first line treatment for hypertension.",
}],
extra_body={
"citations": {
"enabled": True,
"sources": ["public_kb"],
"top_k": 3,
}
},
)
print(response.choices[0].message.content)Summarize first line treatment for hypertension.
Guidelines recommend lifestyle changes for everyone with high blood pressure. When medication is needed, first line options include thiazide diuretics, ACE inhibitors, ARBs, and calcium channel blockers [1][2]. The choice depends on age, other conditions, and blood pressure level [1].
Sample response for illustration. Not medical advice.
Three steps from an empty project to an answer with sources attached.
Sign up in the developer console and create a key scoped to what your app needs.
developer.council.healthKeep the OpenAI SDK you use today and change the base URL.
base_url="https://developer.council.health/v1"Add a citations object and choose the knowledge scopes your key can read.
"citations": { "enabled": true }Begin with a familiar completion API, then add retrieval and your own knowledge without stitching together a separate stack.
GET/v1/modelsList the models your key can call.POST/v1/chat/completionsChat completions, standard or streamed, with optional citations.POST/v1/kb/documentsAdd text to a knowledge base and follow its ingestion.POST/v1/kb/searchSearch a knowledge base directly.The public API is separated from the private model runtime, and authorization follows the API key, not caller supplied identity fields. The API is HIPAA compliant* for protected health information handled under a signed BAA.
A foundation for clinical experiences where evidence and provenance matter.
Start with $10 in API credits. Use core chat when generation is enough, or add Council knowledge for answers with citations.
For generation workflows that do not need retrieval.
For experiences where answers need source context and provenance.
Yes. Point an OpenAI compatible client at https://developer.council.health/v1 and authenticate with a Council API key. Chat completions support both standard and streaming responses.
Add a citations object to a chat request and choose the knowledge scopes your key is allowed to use. Council retrieves relevant context and returns citation metadata with the completion. Set citations.required to true when retrieval must succeed.
Yes. Keys with document permissions can upload text, follow the ingestion job, and query customer or personal knowledge scopes. The authenticated key determines the account boundary.
Yes, once a Business Associate Agreement is signed. The API is HIPAA compliant* for protected health information handled under a signed BAA, so request one before you send any.
The developer console at developer.council.health lets you create and revoke keys, review request volume and spend, purchase credits, and copy integration examples.
Create an account, generate a key, and make your first Council API call.
Want the whole tool built instead? Learn more
For clinical support workflows. Qualified professionals remain responsible for care decisions.