diff --git a/.sdk.json b/.sdk.json index dc09381..b395604 100644 --- a/.sdk.json +++ b/.sdk.json @@ -1,5 +1,5 @@ { - "id": "1e4b45ec-8087-484b-a717-95683600de86", + "id": "79b6b8f9-cd15-4aec-ac0f-cd16313a0353", "tracked_paths": [ { "editable": true, diff --git a/magic_hour/environment.py b/magic_hour/environment.py index 2e4d4d6..643dcbc 100644 --- a/magic_hour/environment.py +++ b/magic_hour/environment.py @@ -6,7 +6,7 @@ class Environment(enum.Enum): """Pre-defined base URLs for the API""" ENVIRONMENT = "https://api.magichour.ai" - MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.54.0" + MOCK_SERVER = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.55.1" def _get_base_url( diff --git a/magic_hour/resources/v1/ai_voice_generator/README.md b/magic_hour/resources/v1/ai_voice_generator/README.md index dd351cc..6d06a35 100644 --- a/magic_hour/resources/v1/ai_voice_generator/README.md +++ b/magic_hour/resources/v1/ai_voice_generator/README.md @@ -69,7 +69,7 @@ Generate speech from text. Each character costs 0.05 credits. The cost is rounde | Parameter | Required | Description | Example | | --------------- | :------: | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- | | `style` | ✓ | The content used to generate speech. | `{"prompt": "Hello, how are you?", "voice_name": "Elon Musk"}` | -| `└─ prompt` | ✓ | Text used to generate speech. Starter tier users can use up to 1000 characters, while Creator, Pro, or Business users can use up to 1000. | `"Hello, how are you?"` | +| `└─ prompt` | ✓ | Text used to generate speech. The character limit is 1000 characters. | `"Hello, how are you?"` | | `└─ voice_name` | ✓ | The voice to use for the speech. Available voices: Elon Musk, Mark Zuckerberg, Joe Rogan, Barack Obama, Morgan Freeman, Kanye West, Donald Trump, Joe Biden, Kim Kardashian, Taylor Swift, James Earl Jones, Samuel L. Jackson, Jeff Goldblum, David Attenborough, Sean Connery, Cillian Murphy, Anne Hathaway, Julia Roberts, Natalie Portman, Steve Carell, Amy Poehler, Stephen Colbert, Jimmy Fallon, David Letterman, Alex Trebek, Katy Perry, Prince, Kevin Bacon, Tom Hiddleston, Adam Driver, Alan Rickman, Alexz Johnson, Ana Gasteyer, Andrew Rannells, Arden Cho, Bear Grylls, Ben McKenzie, Ben Stiller, Ben Whishaw, Billie Joe Armstrong, Bingbing Li, Bob Barker, Booboo Stewart, Bradley Steven Perry, Bruno Mars, Caity Lotz, Cameron Boyce, Candice Accola, Carrie Underwood, Casey Affleck, Caterina Scorsone, Cedric the Entertainer, Chace Crawford, Chadwick Boseman, Charlie Day, Chris Hemsworth, Chris Martin, Christopher Mintz-Plasse, Dan Fogler, Dan Stevens, Daniel Dae Kim, Danielle Panabaker, Dave Bautista, David Schwimmer, Denis Leary, Derek Mears, Diego Luna, Donald Glover, Donnie Yen, Doutzen Kroes, Dove Cameron, Dr. Dre, Drake Bell, Elle Fanning, Ernie Hudson, Fergie, Forest Whitaker, Francia Raisa, Freddie Highmore, Gillian Jacobs, Gina Carano, Ginnifer Goodwin, Gordon Ramsay, Guy Pearce, Gwendoline Christie, Hailee Steinfeld, Howie Mandel, Hugh Jackman, Hugh Laurie, J. K. Simmons, Jack Black, Jared Leto, Jennifer Carpenter, Kesha, Kris Jenner, Kristen Bell, Lorde, Matt Smith, Marilyn Monroe, Charlie Chaplin, Albert Einstein, Abraham Lincoln, John F. Kennedy, Lucille Ball, A.R. Rahman, Aamir Khan, Ajay Devgn, Akshay Kumar, Alain Delon, Alan Alda, Alan Cumming, Amitabh Bachchan, Ang Lee, Ansel Elgort, Anthony Anderson, Anthony Mackie, Armie Hammer, Asa Butterfield, B.J. Novak, Barbara Eden, Betty White, Bill Nighy, Bill Pullman, Blake Shelton, Bonnie Wright, Brad Paisley, Brendan Gleeson, Brian Cox, Bruno Ganz, Burt Reynolds, Carrie Fisher, Charles Dance, Chiwetel Ejiofor, Chris Pine, Christina Hendricks, Christina Ricci, Cyndi Lauper, Dakota Fanning, Damian Lewis, Dan Aykroyd, Daniel Craig, David Oyelowo, David Tennant, Diane Keaton, Diane Kruger, Dick Van Dyke, Domhnall Gleeson, Dominic Cooper, Donald Sutherland, Drew Carey, Eartha Kitt, Eddie Izzard, Edward Asner, Eli Roth, Elisabeth Moss, Ellen Burstyn, Emile Hirsch, Ezra Miller, Felicity Jones, Fiona Shaw, Florence Henderson, Freida Pinto, Geena Davis, Gemma Arterton, Geri Halliwell, Glenn Close, Gloria Steinem, Greta Gerwig, Gugu Mbatha-Raw, Hans Zimmer, Harry Connick Jr., Harvey Keitel, Helena Bonham Carter, Henry Cavill, Hilary Swank, Hugh Bonneville, Idina Menzel, Imelda Staunton, Ingrid Bergman, Irrfan Khan, Isla Fisher, Iwan Rheon, Jack Lemmon, Janet Jackson, Jason Bateman, Jason Segel, Jennifer Coolidge, Johnny Galecki, Jon Favreau, Joseph Gordon-Levitt, Josh Brolin, Josh Gad, Josh Groban, Julia Louis-Dreyfus, Kristen Stewart, Kristen Wiig, Rooney Mara, Caitriona Balfe, J.J. Abrams, Zoe Saldana | `"Elon Musk"` | | `name` | ✗ | Give your audio a custom name for easy identification. | `"My Voice Generator audio"` | diff --git a/magic_hour/resources/v1/face_detection/README.md b/magic_hour/resources/v1/face_detection/README.md index 00b5578..f8bb851 100644 --- a/magic_hour/resources/v1/face_detection/README.md +++ b/magic_hour/resources/v1/face_detection/README.md @@ -60,15 +60,15 @@ res = await client.v1.face_detection.generate( Get the details of a face detection task. -Use this API to get the list of faces detected in the image or video to use in the [face swap photo](/api-reference/face-swap-photo/face-swap-photo) or [face swap video](/api-reference/face-swap/face-swap-video) API calls for multi-face swaps. +Use this API to get the list of faces detected in the image or video to use in the [face swap photo](https://docs.magichour.ai/api-reference/image-projects/face-swap-photo) or [face swap video](https://docs.magichour.ai/api-reference/video-projects/face-swap-video) API calls for multi-face swaps. **API Endpoint**: `GET /v1/face-detection/{id}` #### Parameters -| Parameter | Required | Description | Example | -| --------- | :------: | ------------------------------------------------------------------------------------------------------------------------ | ---------------- | -| `id` | ✓ | The id of the task. This value is returned by the [face detection API](/api-reference/files/face-detection#response-id). | `"uuid-example"` | +| Parameter | Required | Description | Example | +| --------- | :------: | ------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- | +| `id` | ✓ | The id of the task. This value is returned by the [face detection API](https://docs.magichour.ai/api-reference/files/face-detection#response-id). | `"uuid-example"` | #### Synchronous Client @@ -106,7 +106,7 @@ res = await client.v1.face_detection.get(id="uuid-example") Detect faces in an image or video. -Use this API to get the list of faces detected in the image or video to use in the [face swap photo](/api-reference/face-swap-photo/face-swap-photo) or [face swap video](/api-reference/face-swap/face-swap-video) API calls for multi-face swaps. +Use this API to get the list of faces detected in the image or video to use in the [face swap photo](https://docs.magichour.ai/api-reference/face-swap-photo/face-swap-photo) or [face swap video](https://docs.magichour.ai/api-reference/face-swap/face-swap-video) API calls for multi-face swaps. Note: Face detection is free to use for the near future. Pricing may change in the future. diff --git a/magic_hour/resources/v1/face_detection/client.py b/magic_hour/resources/v1/face_detection/client.py index 60dabc4..0e9c080 100644 --- a/magic_hour/resources/v1/face_detection/client.py +++ b/magic_hour/resources/v1/face_detection/client.py @@ -122,12 +122,12 @@ def get( Get the details of a face detection task. - Use this API to get the list of faces detected in the image or video to use in the [face swap photo](/api-reference/face-swap-photo/face-swap-photo) or [face swap video](/api-reference/face-swap/face-swap-video) API calls for multi-face swaps. + Use this API to get the list of faces detected in the image or video to use in the [face swap photo](https://docs.magichour.ai/api-reference/image-projects/face-swap-photo) or [face swap video](https://docs.magichour.ai/api-reference/video-projects/face-swap-video) API calls for multi-face swaps. GET /v1/face-detection/{id} Args: - id: The id of the task. This value is returned by the [face detection API](/api-reference/files/face-detection#response-id). + id: The id of the task. This value is returned by the [face detection API](https://docs.magichour.ai/api-reference/files/face-detection#response-id). request_options: Additional options to customize the HTTP request Returns: @@ -164,7 +164,7 @@ def create( Detect faces in an image or video. - Use this API to get the list of faces detected in the image or video to use in the [face swap photo](/api-reference/face-swap-photo/face-swap-photo) or [face swap video](/api-reference/face-swap/face-swap-video) API calls for multi-face swaps. + Use this API to get the list of faces detected in the image or video to use in the [face swap photo](https://docs.magichour.ai/api-reference/face-swap-photo/face-swap-photo) or [face swap video](https://docs.magichour.ai/api-reference/face-swap/face-swap-video) API calls for multi-face swaps. Note: Face detection is free to use for the near future. Pricing may change in the future. @@ -297,12 +297,12 @@ async def get( Get the details of a face detection task. - Use this API to get the list of faces detected in the image or video to use in the [face swap photo](/api-reference/face-swap-photo/face-swap-photo) or [face swap video](/api-reference/face-swap/face-swap-video) API calls for multi-face swaps. + Use this API to get the list of faces detected in the image or video to use in the [face swap photo](https://docs.magichour.ai/api-reference/image-projects/face-swap-photo) or [face swap video](https://docs.magichour.ai/api-reference/video-projects/face-swap-video) API calls for multi-face swaps. GET /v1/face-detection/{id} Args: - id: The id of the task. This value is returned by the [face detection API](/api-reference/files/face-detection#response-id). + id: The id of the task. This value is returned by the [face detection API](https://docs.magichour.ai/api-reference/files/face-detection#response-id). request_options: Additional options to customize the HTTP request Returns: @@ -339,7 +339,7 @@ async def create( Detect faces in an image or video. - Use this API to get the list of faces detected in the image or video to use in the [face swap photo](/api-reference/face-swap-photo/face-swap-photo) or [face swap video](/api-reference/face-swap/face-swap-video) API calls for multi-face swaps. + Use this API to get the list of faces detected in the image or video to use in the [face swap photo](https://docs.magichour.ai/api-reference/face-swap-photo/face-swap-photo) or [face swap video](https://docs.magichour.ai/api-reference/face-swap/face-swap-video) API calls for multi-face swaps. Note: Face detection is free to use for the near future. Pricing may change in the future. diff --git a/magic_hour/types/models/v1_face_detection_create_response.py b/magic_hour/types/models/v1_face_detection_create_response.py index 3fd4171..b7d82ee 100644 --- a/magic_hour/types/models/v1_face_detection_create_response.py +++ b/magic_hour/types/models/v1_face_detection_create_response.py @@ -21,5 +21,5 @@ class V1FaceDetectionCreateResponse(pydantic.BaseModel): alias="id", ) """ - The id of the task. Use this value in the [get face detection details API](/api-reference/files/get-face-detection-details) to get the details of the face detection task. + The id of the task. Use this value in the [get face detection details API](https://docs.magichour.ai/api-reference/files/get-face-detection-details) to get the details of the face detection task. """ diff --git a/magic_hour/types/models/v1_face_detection_get_response.py b/magic_hour/types/models/v1_face_detection_get_response.py index a425b2b..3c0bce1 100644 --- a/magic_hour/types/models/v1_face_detection_get_response.py +++ b/magic_hour/types/models/v1_face_detection_get_response.py @@ -33,7 +33,7 @@ class V1FaceDetectionGetResponse(pydantic.BaseModel): alias="id", ) """ - The id of the task. This value is returned by the [face detection API](/api-reference/files/face-detection#response-id). + The id of the task. This value is returned by the [face detection API](https://docs.magichour.ai/api-reference/files/face-detection#response-id). """ status: typing_extensions.Literal["complete", "error", "queued", "rendering"] = ( pydantic.Field( diff --git a/magic_hour/types/params/v1_ai_voice_generator_create_body_style.py b/magic_hour/types/params/v1_ai_voice_generator_create_body_style.py index ecd34bc..578ddb8 100644 --- a/magic_hour/types/params/v1_ai_voice_generator_create_body_style.py +++ b/magic_hour/types/params/v1_ai_voice_generator_create_body_style.py @@ -9,7 +9,7 @@ class V1AiVoiceGeneratorCreateBodyStyle(typing_extensions.TypedDict): prompt: typing_extensions.Required[str] """ - Text used to generate speech. Starter tier users can use up to 1000 characters, while Creator, Pro, or Business users can use up to 1000. + Text used to generate speech. The character limit is 1000 characters. """ voice_name: typing_extensions.Required[ diff --git a/pyproject.toml b/pyproject.toml index 6d418a8..ca8e5d1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "magic_hour" -version = "0.55.0" +version = "0.55.1" description = "Python SDK for Magic Hour API" readme = "README.md" authors = []