Skip to content

Commit 7e43c6a

Browse files
committed
docs: update README examples
1 parent 4cd8792 commit 7e43c6a

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,25 @@ openai [resource] <command> [flags...]
5454
```sh
5555
export OPENAI_API_KEY="sk-..."
5656

57-
openai chat:completions create \
58-
--message '{content: Say this is a test, role: user}' \
59-
--model gpt-4o
57+
openai responses create \
58+
--input "Say this is a test" \
59+
--model gpt-5.5
6060
```
6161

62+
Organization admin endpoints require an admin API key:
63+
64+
```sh
65+
export OPENAI_ADMIN_KEY="sk-admin-..."
66+
67+
openai admin:organization:usage completions \
68+
--start-time 1735689600 \
69+
--end-time 1735776000 \
70+
--bucket-width 1d
71+
```
72+
73+
See the [completions usage API reference](https://developers.openai.com/api/reference/resources/admin/subresources/organization/subresources/usage/methods/completions)
74+
for available filters and grouping options.
75+
6276
For details about specific commands, use the `--help` flag.
6377

6478
### Environment variables

0 commit comments

Comments
 (0)