{"id":23965,"library":"lightning-sdk","title":"Lightning SDK","description":"The Lightning SDK provides programmatic access to Lightning AI Studios, enabling developers to create, manage, and interact with studios, workspaces, and apps. Version 2026.4.23 supports Python >=3.8 and is released on a monthly cadence.","status":"active","version":"2026.4.23","language":"python","source_language":"en","source_url":"https://github.com/Lightning-AI/lightning-sdk","tags":["lightning-ai","studio","sdk","machine-learning","deep-learning","cloud"],"install":[{"cmd":"pip install lightning-sdk","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core Lightning AI framework for studio operations","package":"lightning","optional":false},{"reason":"HTTP client for API calls","package":"requests","optional":false}],"imports":[{"wrong":"from lightning_sdk import LightningClient","symbol":"AIHub","correct":"from lightning_sdk import AIHub"},{"wrong":"from lightning_sdk import LightningClient","symbol":"Studio","correct":"from lightning_sdk import Studio"},{"wrong":"from lightning_sdk import LightningClient","symbol":"Job","correct":"from lightning_sdk import Job"}],"quickstart":{"code":"import os\nfrom lightning_sdk import LightningClient, Studio\n\n# Authenticate using API key (set as environment variable)\nclient = LightningClient(api_key=os.environ.get('LIGHTNING_API_KEY', ''))\n\n# Create a new studio\nstudio = client.create_studio(name='my-studio')\nprint(f\"Created studio: {studio.id}\")","lang":"python","description":"Initialize the Lightning client with an API key environment variable and create a studio."},"warnings":[{"fix":"Update your code: replace 'workspace_id' with 'project_id' when calling create_studio().","message":"In version 2026.4.0, the API for creating studios changed. The 'create_studio' method now requires a 'project_id' parameter instead of 'workspace_id'.","severity":"breaking","affected_versions":">=2026.4.0"},{"fix":"Use 'lightning_sdk.api.v2' or the high-level interfaces in 'lightning_sdk' directly.","message":"The 'lightning_sdk.api.v1' module is deprecated and will be removed in a future release.","severity":"deprecated","affected_versions":">=2026.1.0"},{"fix":"Ensure the environment variable is named 'LIGHTNING_API_KEY' (case-sensitive).","message":"API keys must be passed as a string to the client constructor. If you omit the api_key and have LIGHTNING_API_KEY env var set, it will be read automatically, but only if the env var is exactly 'LIGHTNING_API_KEY'.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'2026.4.23':26 '3.8':29 'access':8 'ai':11,39 'app':24 'cadenc':36 'cloud':48 'creat':16 'deep':46 'deep-learn':45 'develop':14 'enabl':13 'interact':19 'learn':44,47 'lightn':1,4,10,38 'lightning-ai':37 'machin':43 'machine-learn':42 'manag':17 'month':35 'programmat':7 'provid':6 'python':28 'releas':32 'sdk':2,5,41 'studio':12,21,40 'support':27 'version':25 'workspac':22","created_at":"2026-05-01T08:10:34.005630+00:00","updated_at":"2026-05-01T08:10:34.005630+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'AIHub' from 'lightning_sdk' (/tmp/tmp_prymlvg/venv/lib/python3.12/site-packages/lightning_sdk/__init__.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"2026.6.8.post0","cli_name":"","cli_version":null,"type":"library","homepage":"https://lightning.ai","github":null,"docs":"https://lightning.ai/docs/overview/sdk-reference","changelog":null,"pypi":"https://pypi.org/project/lightning-sdk/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["crm-productivity","devops","workflow"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}