{"data":{"slug":"elevenlabs-elevenlabs-python","name":"elevenlabs-python","tagline":"The official Python SDK for the ElevenLabs API.","github_url":"https://github.com/elevenlabs/elevenlabs-python","owner":"elevenlabs","repo":"elevenlabs-python","owner_avatar_url":"https://avatars.githubusercontent.com/u/94471909?v=4","primary_language":"Python","stars":3021,"forks":423,"topics":["artificial-intelligence","conversational-ai","text-to-speech"],"archived":false,"github_pushed_at":"2026-07-09T07:48:00+00:00","maintenance_label":"Very active","url":"https://www.graphcanon.com/tools/elevenlabs-elevenlabs-python","markdown_url":"https://www.graphcanon.com/tools/elevenlabs-elevenlabs-python.md","api_url":"https://www.graphcanon.com/api/graphcanon/tools/elevenlabs-elevenlabs-python","graph_url":"https://www.graphcanon.com/api/graphcanon/graph?tool=elevenlabs-elevenlabs-python","description":"The official Python SDK for the ElevenLabs API.","homepage_url":"https://elevenlabs.io/docs/api-reference/overview","license":"MIT","open_issues":16,"watchers":51,"ai_summary":null,"readme_excerpt":"## Install\n\n```bash\npip install elevenlabs\n```\n\n---\n\n### Quick Start\n\n```python\nimport asyncio\nfrom openai import AsyncOpenAI\nfrom elevenlabs import AsyncElevenLabs\n\nopenai_client = AsyncOpenAI()\nelevenlabs = AsyncElevenLabs()\n\nasync def main():\n    engine = await elevenlabs.speech_engine.get(\"seng_123\")\n\n    async def on_transcript(transcript, session):\n        stream = await openai_client.responses.create(\n            model=\"gpt-4o\",\n            input=[\n                {\"role\": \"assistant\" if m.role == \"agent\" else m.role, \"content\": m.content}\n                for m in transcript\n            ],\n            stream=True,\n        )\n        await session.send_response(stream)\n\n    async def on_init(conversation_id, session):\n        print(f\"Session started: {conversation_id}\")\n\n    async def on_close(session):\n        print(f\"Session ended: {session.conversation_id}\")\n\n    async def on_error(err, session):\n        print(f\"Error: {err}\")\n\n    await engine.serve(\n        port=3001,\n        debug=True,\n        on_init=on_init,\n        on_transcript=on_transcript,\n        on_close=on_close,\n        on_error=on_error,\n    )\n\nasyncio.run(main())\n```","github_created_at":"2023-03-26T11:59:52+00:00","created_at":"2026-07-11T12:07:59.195996+00:00","updated_at":"2026-07-11T12:08:09.350122+00:00","categories":[{"slug":"ai-agents","name":"AI Agents","url":"https://www.graphcanon.com/categories/ai-agents","markdown_url":"https://www.graphcanon.com/categories/ai-agents.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/ai-agents"},{"slug":"developer-tools","name":"Developer Tools","url":"https://www.graphcanon.com/categories/developer-tools","markdown_url":"https://www.graphcanon.com/categories/developer-tools.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/developer-tools"},{"slug":"speech-audio","name":"Speech & Audio","url":"https://www.graphcanon.com/categories/speech-audio","markdown_url":"https://www.graphcanon.com/categories/speech-audio.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/speech-audio"}],"tags":[{"slug":"artificial-intelligence","name":"artificial-intelligence"},{"slug":"conversational-ai","name":"conversational-ai"},{"slug":"python","name":"python"},{"slug":"text-to-speech","name":"text-to-speech"}],"trust":{"provenance":{"is_fork":false,"github_id":619143361,"owner_type":"Organization","methodology":"github_public_v1","parent_repo":null,"near_duplicate_slugs":[]},"computed_at":"2026-07-11T12:07:59.882Z","maintenance":{"label":"Very active","score":96,"methodology":"github_public_v1","releases_90d":16,"days_since_push":2,"last_release_at":"2026-07-09T07:48:01Z"},"security_summary":{"status":"findings","scanner":"osv@v1","low_count":24,"high_count":0,"last_scan_at":"2026-07-11T12:08:05.381Z","medium_count":0,"scan_profile":"deps","critical_count":0}},"capability_facts":{"scan":{"source":"repo_scan","observed_at":"2026-07-11T12:08:04.940Z"},"languages":{"value":["python"],"source":"github.language+pyproject.toml","observed_at":"2026-07-11T12:08:04.940Z"},"license_spdx":{"value":"MIT","source":"github.license","observed_at":"2026-07-11T12:08:04.940Z"}}}}