Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"cliVersion": "3.1.0",
"generatorName": "fernapi/fern-python-sdk",
"generatorVersion": "4.42.0",
"generatorConfig": {
"client": {
"class_name": "BaseClient",
"filename": "base_client.py",
"exported_class_name": "DeepgramClient",
"exported_filename": "client.py"
},
"use_typeddict_requests": true,
"should_generate_websocket_clients": true
}
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2025 Deepgram.
Copyright (c) 2026 Deepgram.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
240 changes: 92 additions & 148 deletions poetry.lock

Large diffs are not rendered by default.

158 changes: 157 additions & 1 deletion reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,41 @@ client = DeepgramClient(
api_key="YOUR_API_KEY",
)
client.listen.v1.media.transcribe_url(
callback="callback",
callback_method="POST",
extra="extra",
sentiment=True,
summarize="v2",
tag="tag",
topics=True,
custom_topic="custom_topic",
custom_topic_mode="extended",
intents=True,
custom_intent="custom_intent",
custom_intent_mode="extended",
detect_entities=True,
detect_language=True,
diarize=True,
dictation=True,
encoding="linear16",
filler_words=True,
keywords="keywords",
language="language",
measurements=True,
model="nova-3",
multichannel=True,
numerals=True,
paragraphs=True,
profanity_filter=True,
punctuate=True,
redact="redact",
replace="replace",
search="search",
smart_format=True,
utterances=True,
utt_split=1.1,
version="latest",
mip_opt_out=True,
url="https://dpgr.am/spacewalk.wav",
)

Expand Down Expand Up @@ -877,7 +912,9 @@ from deepgram import DeepgramClient
client = DeepgramClient(
api_key="YOUR_API_KEY",
)
client.manage.v1.models.list()
client.manage.v1.models.list(
include_outdated=True,
)

```
</dd>
Expand Down Expand Up @@ -1078,6 +1115,8 @@ client = DeepgramClient(
)
client.manage.v1.projects.get(
project_id="123456-7890-1234-5678-901234",
limit=1.1,
page=1.1,
)

```
Expand Down Expand Up @@ -1383,6 +1422,7 @@ client = DeepgramClient(
)
client.manage.v1.projects.keys.list(
project_id="123456-7890-1234-5678-901234",
status="active",
)

```
Expand Down Expand Up @@ -1849,6 +1889,7 @@ client = DeepgramClient(
)
client.manage.v1.projects.models.list(
project_id="123456-7890-1234-5678-901234",
include_outdated=True,
)

```
Expand Down Expand Up @@ -2000,15 +2041,29 @@ Generates a list of requests for a specific project
<dd>

```python
import datetime

from deepgram import DeepgramClient

client = DeepgramClient(
api_key="YOUR_API_KEY",
)
client.manage.v1.projects.requests.list(
project_id="123456-7890-1234-5678-901234",
start=datetime.datetime.fromisoformat(
"2024-01-15 09:30:00+00:00",
),
end=datetime.datetime.fromisoformat(
"2024-01-15 09:30:00+00:00",
),
limit=1.1,
page=1.1,
accessor="12345678-1234-1234-1234-123456789012",
request_id="12345678-1234-1234-1234-123456789012",
deployment="hosted",
endpoint="listen",
method="sync",
status="succeeded",
)

```
Expand Down Expand Up @@ -2239,10 +2294,50 @@ client = DeepgramClient(
)
client.manage.v1.projects.usage.get(
project_id="123456-7890-1234-5678-901234",
start="start",
end="end",
accessor="12345678-1234-1234-1234-123456789012",
alternatives=True,
callback_method=True,
callback=True,
channels=True,
custom_intent_mode=True,
custom_intent=True,
custom_topic_mode=True,
custom_topic=True,
deployment="hosted",
detect_entities=True,
detect_language=True,
diarize=True,
dictation=True,
encoding=True,
endpoint="listen",
extra=True,
filler_words=True,
intents=True,
keyterm=True,
keywords=True,
language=True,
measurements=True,
method="sync",
model="6f548761-c9c0-429a-9315-11a1d28499c8",
multichannel=True,
numerals=True,
paragraphs=True,
profanity_filter=True,
punctuate=True,
redact=True,
replace=True,
sample_rate=True,
search=True,
sentiment=True,
smart_format=True,
summarize=True,
tag="tag1",
topics=True,
utt_split=True,
utterances=True,
version=True,
)

```
Expand Down Expand Up @@ -2816,7 +2911,10 @@ client = DeepgramClient(
)
client.manage.v1.projects.billing.breakdown.list(
project_id="123456-7890-1234-5678-901234",
start="start",
end="end",
accessor="12345678-1234-1234-1234-123456789012",
deployment="hosted",
tag="tag1",
line_item="streaming::nova-3",
)
Expand Down Expand Up @@ -2951,6 +3049,8 @@ client = DeepgramClient(
)
client.manage.v1.projects.billing.fields.list(
project_id="123456-7890-1234-5678-901234",
start="start",
end="end",
)

```
Expand Down Expand Up @@ -3038,6 +3138,7 @@ client = DeepgramClient(
)
client.manage.v1.projects.billing.purchases.list(
project_id="123456-7890-1234-5678-901234",
limit=1.1,
)

```
Expand Down Expand Up @@ -3523,10 +3624,51 @@ client = DeepgramClient(
)
client.manage.v1.projects.usage.breakdown.get(
project_id="123456-7890-1234-5678-901234",
start="start",
end="end",
grouping="accessor",
accessor="12345678-1234-1234-1234-123456789012",
alternatives=True,
callback_method=True,
callback=True,
channels=True,
custom_intent_mode=True,
custom_intent=True,
custom_topic_mode=True,
custom_topic=True,
deployment="hosted",
detect_entities=True,
detect_language=True,
diarize=True,
dictation=True,
encoding=True,
endpoint="listen",
extra=True,
filler_words=True,
intents=True,
keyterm=True,
keywords=True,
language=True,
measurements=True,
method="sync",
model="6f548761-c9c0-429a-9315-11a1d28499c8",
multichannel=True,
numerals=True,
paragraphs=True,
profanity_filter=True,
punctuate=True,
redact=True,
replace=True,
sample_rate=True,
search=True,
sentiment=True,
smart_format=True,
summarize=True,
tag="tag1",
topics=True,
utt_split=True,
utterances=True,
version=True,
)

```
Expand Down Expand Up @@ -3958,6 +4100,8 @@ client = DeepgramClient(
)
client.manage.v1.projects.usage.fields.list(
project_id="123456-7890-1234-5678-901234",
start="start",
end="end",
)

```
Expand Down Expand Up @@ -4044,6 +4188,18 @@ client = DeepgramClient(
api_key="YOUR_API_KEY",
)
client.read.v1.text.analyze(
callback="callback",
callback_method="POST",
sentiment=True,
summarize="v2",
tag="tag",
topics=True,
custom_topic="custom_topic",
custom_topic_mode="extended",
intents=True,
custom_intent="custom_intent",
custom_intent_mode="extended",
language="language",
request={"url": "url"},
)

Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ httpx>=0.21.2
pydantic>= 1.9.2
pydantic-core>=2.18.2
typing_extensions>= 4.0.0
websockets>=12.0
Loading
Loading