# Introduction

Welcome to the **Bizora Integration API** documentation! Our API provides OpenAI-compatible endpoints for AI-powered tax research.

## What is Bizora Integration API?

The Bizora Integration API is a powerful, OpenAI-compatible API that enables developers to:

- Build tax research applications
- Ask questions about tax codes and regulations
- Stream responses in real-time
- Secure API key authentication

## Key Features

### OpenAI SDK Compatible

Use the official OpenAI Python or JavaScript SDK - just change the base URL and you're ready to go!

### Real-time Streaming

Get responses as they're generated with Server-Sent Events (SSE) streaming.

### Deep Research Mode

Use deep research for complex tax questions that need multi-step research, synthesis across sources, and a more comprehensive answer.

### Audit Research Mode

Use audit research to conduct comprehensive analysis on complex accounting standards, compliance issues, and financial reporting questions.

For pricing information, refer to the [pricing section](./pricing.mdx).

## Quick Example

Get started with streaming responses in real-time:

```python
import openai

# Initialize the client
client = openai.OpenAI(
    api_key="sk_live_YOUR_API_KEY",
    base_url="https://api-bizora.ai"
)

# Stream the response in real-time
stream = client.chat.completions.create(
    model="bizora-1.0",
    messages=[{"role": "human", "content": "What is section 179? Answer briefly."}],
    stream=True
)

for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)
```

```javascript
import OpenAI from 'openai';

// Initialize the client
const client = new OpenAI({
  apiKey: 'sk_live_YOUR_API_KEY',
  baseURL: 'https://api-bizora.ai'
});

// Stream the response in real-time
const stream = await client.chat.completions.create({
  model: 'bizora-1.0',
  messages: [{ role: 'human', content: 'What is section 179? Answer briefly.' }],
  stream: true
});

for await (const chunk of stream) {
  if (chunk.choices[0]?.delta?.content) {
    process.stdout.write(chunk.choices[0].delta.content);
  }
}
```

```bash
# Stream the response in real-time (use -N flag for streaming)
curl -X POST -N https://api-bizora.ai/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY" \
  -d '{
    "model": "bizora-1.0",
    "messages": [
      {"role": "human", "content": "What is section 179? Answer briefly."}
    ],
    "stream": true
  }'
```

## Getting Started

Ready to start building? Check out our [Quickstart Guide](./quickstart.mdx) to make your first API call in minutes!

## Need Help?

- admin@bizora.ai
- Security Bugs: admin@bizora.ai
- Dashboard: https://platform.bizora.ai
