{"id":23899275,"url":"https://github.com/alphasnow/liblib","last_synced_at":"2025-02-23T08:24:55.178Z","repository":{"id":268974601,"uuid":"906027238","full_name":"alphasnow/liblib","owner":"alphasnow","description":"LiblibAI-哩布哩布AI的API接口","archived":false,"fork":false,"pushed_at":"2024-12-20T03:28:49.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-04T18:17:08.594Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alphasnow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-20T02:28:42.000Z","updated_at":"2024-12-20T03:32:19.000Z","dependencies_parsed_at":"2024-12-20T04:31:14.535Z","dependency_job_id":"a4df447f-af67-4ea7-99b4-e1c0ed77d556","html_url":"https://github.com/alphasnow/liblib","commit_stats":null,"previous_names":["alphasnow/liblib"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphasnow%2Fliblib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphasnow%2Fliblib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphasnow%2Fliblib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphasnow%2Fliblib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alphasnow","download_url":"https://codeload.github.com/alphasnow/liblib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240288721,"owners_count":19777720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-04T18:17:11.921Z","updated_at":"2025-02-23T08:24:55.139Z","avatar_url":"https://github.com/alphasnow.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# liblib\nLiblibAI-哩布哩布AI的API接口 https://www.liblib.art/\n\n## 功能\n- Text2Img\n- Img2Img\n- Text2ImgUltra\n- Img2ImgUltra\n- Text2ImgClassic\n- Img2ImgClassic\n- Status\n\n## 示例\n### 建立任务\n```go\napi := liblib.NewAPI(\"AccessKey\", \"SecretKey\")\nreq := []byte(`{\n    \"templateUuid\": \"6f7c4652458d4802969f8d089cf5b91f\",\n    \"generateParams\": {\n        \"prompt\": \"filmfotos, Asian portrait,A young woman wearing a green baseball cap,covering one eye with her hand\",\n        \"steps\": 20,\n        \"width\": 768,\n        \"height\": 1024,\n        \"imgCount\": 1, \n        \"seed\": -1,\n        \"restoreFaces\": 0,\n        \"additionalNetwork\": [\n            {\n                \"modelId\": \"169505112cee468b95d5e4a5db0e5669\",\n                \"weight\": 1.0\n            }\n        ]\n    }\n}`)\nresp, err := api.Generate(liblib.Text2Img, req)\nfmt.Println(resp, err)\n// resp.Data.GenerateUuid\n```\n\n### 查询任务结果\n```go\napi := liblib.NewAPI(\"AccessKey\", \"SecretKey\")\nreq := \u0026schema.StatusReq{GenerateUuid: \"GenerateUuid\"}\nresp, err := api.Status(req)\n// resp.Data.GenerateStatus\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falphasnow%2Fliblib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falphasnow%2Fliblib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falphasnow%2Fliblib/lists"}