# DeepInfra Unofficial API Wrapper
## Made in python
This is just a simple made wrapper for deep infra.
You can create the deepinfra instance like this:
```py
from Deepinfra.api import DeepInfra
deepinfra = Deepinfra()
```
Optional parameters include
```api_key: Your deepinfra api key```
To initalize a model you can do the following:
```py
model = deepinfra.model("meta-llama", "Llama-3.3-70B-Instruct")
```
This creates the model class, allowing you to generate text or image from the selected model.
Using an text model to generate images or an image model to generate text will return a `NoModelsFoundError`
Same can be said if a model or author is invalid. Make sure to check the author and model are correct.
You can start generating by doing
`gen = model.generate_text("Hello")`
When `gen.content` is printed. This is outputted:
`Hello! It's nice to meet you. Is there something I can help you with or would you like to chat? I'm here to assist you with any questions or topics you'd like to discuss.`
# Disclamer!
This is my first published package so expect mistakes or bad code when looking through the files. Everything is open source
This package is also not affliated nor endoursed by Deepinfra, this is only a fan project and has no connections to Deepinfra or Deep Infra Inc.
Copyright (c) 2024 LightningWeb
Raw data
{
"_id": null,
"home_page": null,
"name": "deepinfra-api-wrapper",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "DeepInfra, API, Wrapper, Unofficial, AI",
"author": "Lightningrod654",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/27/a2/8138e8da55f4f24311e6c073cbc1818c0438337d02ef8ce2a3cc5727875d/deepinfra_api_wrapper-0.0.4.tar.gz",
"platform": null,
"description": "# DeepInfra Unofficial API Wrapper\n## Made in python\n\nThis is just a simple made wrapper for deep infra.\n\nYou can create the deepinfra instance like this: \n\n```py\nfrom Deepinfra.api import DeepInfra\n\ndeepinfra = Deepinfra() \n```\n\nOptional parameters include\n```api_key: Your deepinfra api key```\n\nTo initalize a model you can do the following:\n```py\nmodel = deepinfra.model(\"meta-llama\", \"Llama-3.3-70B-Instruct\")\n```\nThis creates the model class, allowing you to generate text or image from the selected model.\n\nUsing an text model to generate images or an image model to generate text will return a `NoModelsFoundError`\n\nSame can be said if a model or author is invalid. Make sure to check the author and model are correct.\n\nYou can start generating by doing\n`gen = model.generate_text(\"Hello\")`\n\nWhen `gen.content` is printed. This is outputted: \n`Hello! It's nice to meet you. Is there something I can help you with or would you like to chat? I'm here to assist you with any questions or topics you'd like to discuss.`\n\n# Disclamer!\n\nThis is my first published package so expect mistakes or bad code when looking through the files. Everything is open source\n\nThis package is also not affliated nor endoursed by Deepinfra, this is only a fan project and has no connections to Deepinfra or Deep Infra Inc.\n\nCopyright (c) 2024 LightningWeb\n",
"bugtrack_url": null,
"license": null,
"summary": "API Wrapper for Deepinfra made in python",
"version": "0.0.4",
"project_urls": {
"Homepage": "https://github.com/Lightningrod6/DeepInfra-Unofficial-APIWrapper",
"LightningWeb": "https://lightningweb.xyz"
},
"split_keywords": [
"deepinfra",
" api",
" wrapper",
" unofficial",
" ai"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a39dfe7b58383723066b710583234299c10967263ba63c1a0ad8c88eee34a450",
"md5": "e1457174f96ca6d1ef503b2946eed186",
"sha256": "ed10aa81c255c448f94d794e38262c253993d53f8361871d20b439499ebe22ec"
},
"downloads": -1,
"filename": "deepinfra_api_wrapper-0.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e1457174f96ca6d1ef503b2946eed186",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 6007,
"upload_time": "2024-12-13T07:46:36",
"upload_time_iso_8601": "2024-12-13T07:46:36.247909Z",
"url": "https://files.pythonhosted.org/packages/a3/9d/fe7b58383723066b710583234299c10967263ba63c1a0ad8c88eee34a450/deepinfra_api_wrapper-0.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "27a28138e8da55f4f24311e6c073cbc1818c0438337d02ef8ce2a3cc5727875d",
"md5": "2f6a81a3395383419dccfba4a8133519",
"sha256": "eb3580075b899670434e6a4eb3391c937df33e23afc404db56c41d3d09738ac0"
},
"downloads": -1,
"filename": "deepinfra_api_wrapper-0.0.4.tar.gz",
"has_sig": false,
"md5_digest": "2f6a81a3395383419dccfba4a8133519",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 5159,
"upload_time": "2024-12-13T07:46:38",
"upload_time_iso_8601": "2024-12-13T07:46:38.103836Z",
"url": "https://files.pythonhosted.org/packages/27/a2/8138e8da55f4f24311e6c073cbc1818c0438337d02ef8ce2a3cc5727875d/deepinfra_api_wrapper-0.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-13 07:46:38",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Lightningrod6",
"github_project": "DeepInfra-Unofficial-APIWrapper",
"github_not_found": true,
"lcname": "deepinfra-api-wrapper"
}