# OpenAI API

**Version:** 2.3.0

The OpenAI REST API. Please see https://platform.openai.com/docs/api-reference for more details.

> For installation, loading, error handling, and response structure guides, see the
> [OpenAPI Dyalog documentation](https://dyalog.github.io/OpenAPI).

## Quick Start

```apl
⍝ Create configuration
config ← (
    baseUrl: 'https://api.openai.com/v1'
    security: (
        ⍝ Configure your authentication
        bearerToken: 'env:[APIKEY]'
    )
)

⍝ Create client instance
client ← ⎕NEW Client config
```


## Authentication

This API uses the following authentication methods:


### ApiKeyAuth

- **Type:** http
- **Scheme:** bearer


 ## API Reference

{{~ operations_by_tag = get_operations_by_tag ~}}

| Tag | Endpoints | Reference |
|-----|-----------|-----------|
{{~ for tag_group in operations_by_tag ~}}
| {{ tag_group.key }} | {{ tag_group.value.size }} | [docs/{{ tag_group.key | string.replace " " "-" }}.md](docs/{{ tag_group.key | string.replace " " "-" }}.md) |
{{~ end ~}} 


## Version

```apl
⎕← client.∆.Version ⍬
```

---

**Generated by [OpenAPI Dyalog Generator](https://github.com/Dyalog/OpenAPI)**
**Generated on:** 2026-04-07 10:58:36 UTC
