diff --git a/docs_overseas/appendix/glossary.md b/docs_overseas/appendix/glossary.md index 08c2532390310b688a19aaaae6c4932f2b5e57a0..90d26c957de30a15205148d656b4c50babec3608 100644 --- a/docs_overseas/appendix/glossary.md +++ b/docs_overseas/appendix/glossary.md @@ -26,8 +26,8 @@ The glossary provides you with core terms covering AI technologies and related f | | Model Context Protocol (MCP) | A protocol that defines how models request tools to perform operations, interact with the environment, and obtain results from external systems. | | | Temporary Token | Short-term valid tokens, suitable for client-side calls with higher security. | | | Failover Mechanism | Automatic switching to other compute resources when the primary resource fails, enabled via the request header `X-Failover-Enabled`. | -| 图像与多媒体技术 | Text-to-Image | 根据文本生成图像,如FLUX.1模型,可通过参数控制效果。 | -| | Image-to-Image | 基于原图生成新图像,支持风格迁移、局部重绘。 | +| Image and Multimedia Technology | Text-to-Image | Generate images based on text, such as the FLUX.1 model, which can control effects through parameters. | +| | Image-to-Image | Generate new images based on the original image, supporting style transfer and local repainting. | | | OCR (Optical Character Recognition) | Technology for extracting text from images, supporting multi-language, table, and formula recognition. | | | TTS (Text-to-Speech) | Converting text to speech with voiceprint customization, such as the ChatTTS model. | | | ASR (Automatic Speech Recognition) | Converting speech to text, supporting multiple languages and dialects. | diff --git a/docs_overseas/billing/coupons.md b/docs_overseas/billing/coupons.md index 9d4411c5ebf59cf842374203df9bfa8a9c98bfd4..71b86aa14988dbf118d9c5bd425c614f1368a12d 100644 --- a/docs_overseas/billing/coupons.md +++ b/docs_overseas/billing/coupons.md @@ -21,7 +21,7 @@ Molifangzhou currently offers three types of coupons: **Cash Vouchers**, **Disco After obtaining the cash voucher redemption code issued by the platform, go to [Billing Center - Cash Vouchers]({{SITE_URL}}/dashboard/billing/coupons/cash) and click "Redeem" in the upper right corner. -![alt text](../../static/img/billing/image.png) +![alt text](../../static/img/billing/image.overseas.png) The redemption page displays details of the cash voucher (such as face value, effective/expiry dates). If the input format is incorrect, invalid, or already redeemed, a corresponding error message will be prompted. diff --git a/docs_overseas/billing/intro.md b/docs_overseas/billing/intro.md index 7bc9cb039db0fbe9b86049f215bbd9404506cf3e..c094dac4da3445e6b91d6d96a0698819307aa7ba 100644 --- a/docs_overseas/billing/intro.md +++ b/docs_overseas/billing/intro.md @@ -10,7 +10,7 @@ This chapter covers content related to MoArk's resource packages, billing method Model resource packages are prepaid model call service packages provided by MoArk for users, including: -### Full Model Resource Package +### Resource Package The Full Model Resource Package is a prepaid model API call package that allows users to use the APIs of all deployed models on the Model Plaza. It is suitable for users who need to call multiple types of models. The system will automatically deduct the corresponding fees from the resource package according to the pricing standards of different models. @@ -18,10 +18,6 @@ When users use the Full Model Resource Package, the system will automatically sc **It is recommended that users choose the Full Model Resource Package first.** -### Compute Resource Package - -Different from the Full Model Resource Package, the Computing Power Resource Package refers to a model service package on a single computing cluster. For example, if 50 models are deployed on the `沐曦集群`, then when you purchase the Muxi Computing Power Resource Package, you can only use these 50 models. - ## Billing Points MoArk's billing points include model resource packages . @@ -30,5 +26,5 @@ MoArk's billing points include model resource packages . In MoArk's workbench, you can view resource usage and call logs: -- **Usage Statistics**: View macro data statistics of Serverless API calls to understand the distribution of core indicators of resource usage. [查看用量统计]({{SITE_URL}}/dashboard/statistics/usage-statistics) -- **Usage Logs**: Provide detailed behavior records of resource calls, supporting conditional filtering to accurately locate detailed information of each API call. [查看使用日志]({{SITE_URL}}/dashboard/statistics/usage-logs) \ No newline at end of file +- **Usage Statistics**: View macro data statistics of Serverless API calls to understand the distribution of core indicators of resource usage. [View usage statistics]({{SITE_URL}}/dashboard/statistics/usage-statistics) +- **Usage Logs**: Provide detailed behavior records of resource calls, supporting conditional filtering to accurately locate detailed information of each API call. [View usage log]({{SITE_URL}}/dashboard/statistics/usage-logs) \ No newline at end of file diff --git a/docs_overseas/billing/invoice.md b/docs_overseas/billing/invoice.md deleted file mode 100644 index 5c8b7c993ef1d5903f4a6c5892d9514442ae73e6..0000000000000000000000000000000000000000 --- a/docs_overseas/billing/invoice.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -sidebar_position: 3 ---- - -# Invoice Application Guide - -## Prerequisites - -- **Order Status Requirements**: Invoices can only be issued for the cash amount paid in completed orders. Orders with statuses such as pending payment, pending review, or cancelled cannot be invoiced. Orders with refunds are not eligible for invoicing, and orders for which invoices have been issued cannot be refunded. -- **Amount Type Requirements**: Invoices can only be issued for completed orders. Invoicing is not allowed for uncompleted transactions or orders with statuses like pending payment, in preparation, or pending review. Only electronic versions of VAT ordinary invoices and VAT special invoices are available for application. -- **Information Preparation**: Before applying for an invoice, you need to confirm the invoice information (such as invoice title, email address, etc.) in "Invoice Information Management". For VAT special invoices, you need to upload the business license and general taxpayer certificate. - -## Operation Steps - -1. **Select an Order**: Go to the [Invoice Management Homepage]({{SITE_URL}}/dashboard/billing/invoices) and click [Apply for Invoice]({{SITE_URL}}/dashboard/billing/invoices/apply) in the upper right corner. - - Select a qualified completed order (you can view information such as order number, service, product, deduction time, and payment amount). - - ![invoice01](/img/billing/invoice01.jpg) - -2. **Apply for Invoice**: After selecting the order and submitting the application, you will enter the "Apply for Invoice" page (you can also enter this page when modifying invoice information). The form will read the content from "Invoice Information Management". You can modify the information on the page without affecting the originally stored information. You need to verify the invoice type and information with the finance department (once the invoice is issued, it cannot be changed). - - ![invoice02](/img/billing/invoice02.jpg) - -3. **Submit and Send**: After confirming that the information is correct, submit the application. The electronic invoice will be sent to the email address filled in during submission within 7-15 working days. You can search for "Shenzhen Aosi" in your email to check it. - -## Other Notes - -- For invoicing records that are pending review or rejected, you can modify the information and apply for re-issuance. -- The invoice management page allows you to check the remaining invoice amount, historical invoicing records (including statuses such as in progress, issued, refund pending, etc.), and view invoice details. - - ![invoice03](/img/billing/invoice03.jpg) \ No newline at end of file diff --git a/docs_overseas/getting-started.md b/docs_overseas/getting-started.md index 741fea574b2c9e9c508e23fc33149931749c3112..33c8c7a9ee7a4cb2220a4271abeb1977ed959335 100644 --- a/docs_overseas/getting-started.md +++ b/docs_overseas/getting-started.md @@ -27,14 +27,14 @@ We provide a "Model Square" where you can directly interact with over 100+ popul 4. On the model detail page, you will first see the basic introduction, interface, pricing, and other information of the model. Click the **Online Experience** button to see a conversation interface. In the input box, enter your question or instruction, for example: "Please write a five-word quatrain about spring," and then click "Send." 5. Wait a moment for the model to generate a response. Congratulations! You have successfully interacted with a large model! -![Model Online Experience](../static/img/serverless-api/use.jpg) +![Model Online Experience](../static/img/serverless-api/use.overseas.jpg) ## Step 3: Use API to Call Models Although online experience is very convenient, for developers, directly calling models through the API is more flexible. MoArk provides OpenAI-compatible interfaces, allowing you to integrate model capabilities into your own applications. 1. In the model experience page, find the **API** section, and you will see a sample code snippet. - ![Model Online Experience](../static/img/serverless-api/api.jpg) + ![Model Online Experience](../static/img/serverless-api/api.overseas.jpg) 2. Copy the sample code and replace `api_key` with your own token ([Create Token](/docs/organization/access-token)). Next, you can run the code in your own Python environment. 3. For more details about the API, you can refer to the [API Documentation](/docs/openapi/v1). 4. A simple Python example of calling a large model: @@ -50,7 +50,7 @@ headers = { data = { "model": "DeepSeek-R1", # Model name "messages": [ - {"role": "user", "content": "请帮我写一首关于春天的五言绝句"} + {"role": "user", "content": "Please help me write a five-character quatrain about spring."} ], "max_tokens": 100, # Maximum number of tokens to generate "temperature": 0.7 # Control the randomness of the generated text diff --git a/docs_overseas/integrations/Development-Tools/claude-code.md b/docs_overseas/integrations/Development-Tools/claude-code.md index 0d6ff6d389de1e34337d8a85be5e9c4e5bf0ef09..1133cfb859b5fa480855bb5004a34f987d6493e3 100644 --- a/docs_overseas/integrations/Development-Tools/claude-code.md +++ b/docs_overseas/integrations/Development-Tools/claude-code.md @@ -12,79 +12,79 @@ Serverless API supports calling in Claude Code. The steps are as follows: 1. Install Claude Code and Integration Tools - First, ensure that you have installed Claude Code in your development environment: +First, ensure that you have installed Claude Code in your development environment: - ```bash - npm install -g @anthropic-ai/claude-code - ``` +```bash +npm install -g @anthropic-ai/claude-code +``` - Then, install Claude Code Router as the integration tool: +Then, install Claude Code Router as the integration tool: - ```bash - npm install -g @musistudio/claude-code-router - ``` +```bash +npm install -g @musistudio/claude-code-router +``` 2. Get MoArk Access Token - Developers need to first access [**Workbench->Settings->Access Tokens**]({{SITE_URL}}/dashboard/settings/tokens) to get the access token. Developers without Serverless API purchased can use the free experience access token (for experience only, with limited daily call times), just copy the token they want to use. +Developers need to first access [**Workbench->Settings->Access Tokens**]({{SITE_URL}}/dashboard/settings/tokens) to get the access token. Developers without Serverless API purchased can use the free experience access token (for experience only, with limited daily call times), just copy the token they want to use. - ![](/img/serverless-api/integrated/integrate14.png) +![](/img/serverless-api/integrated/integrate3.overseas.png) 3. Configure Integration File - Create a configuration file `~/.claude-code-router/config.json` in your home directory and replace `your-api-key` with your access token: - - ```json showLineNumbers title="config.json" - { - "Providers": [ - { - "name": "gitee", - "api_base_url": "https://ai.gitee.com/v1/chat/completions", - "api_key": "your-api-key", - "models": ["kimi-k2-instruct"], - "transformer": { - "use": [ - [ - "maxtoken", - { - "max_tokens": 131072 - } - ] - ] - } - } - ], - "Router": { - "default": "gitee,kimi-k2-instruct", - "background": "gitee,kimi-k2-instruct", - "think": "gitee,kimi-k2-instruct", - "longContext": "gitee,kimi-k2-instruct" - }, - "APIKEY": "your-secret-key", - "LOG": true, - "HOST": "0.0.0.0" - } - ``` +Create a configuration file `~/.claude-code-router/config.json` in your home directory and replace `your-api-key` with your access token: + +```json showLineNumbers title="config.json" + { + "Providers": [ + { + "name": "gitee", + "api_base_url": "https://ai.gitee.com/v1/chat/completions", + "api_key": "your-api-key", + "models": ["kimi-k2-instruct"], + "transformer": { + "use": [ + [ + "maxtoken", + { + "max_tokens": 131072 + } + ] + ] + } + } + ], + "Router": { + "default": "gitee,kimi-k2-instruct", + "background": "gitee,kimi-k2-instruct", + "think": "gitee,kimi-k2-instruct", + "longContext": "gitee,kimi-k2-instruct" + }, + "APIKEY": "your-secret-key", + "LOG": true, + "HOST": "0.0.0.0" + } +``` 4. Start Integration Service - Start Claude Code through our integration solution: +Start Claude Code through our integration solution: - ```bash - ccr code - ``` +```bash +ccr code +``` - ![](/img/serverless-api/integrated/claude-code-integrate.png) +![](/img/serverless-api/integrated/claude-code-integrate.png) 5. Use MoArk in Claude Code - At this point, developers can call models from MoArk in Claude Code. You can also switch models in real-time during development: +At this point, developers can call models from MoArk in Claude Code. You can also switch models in real-time during development: - ``` - /model gitee,kimi-k2-instruct - ``` +``` +/model gitee,kimi-k2-instruct +``` - ![](/img/serverless-api/integrated/claude-code-checkout-model.png) +![](/img/serverless-api/integrated/claude-code-checkout-model.png) ### Configuration Parameters @@ -105,6 +105,6 @@ Routing configuration defines the models used in different scenarios: ### More Resources -- [平台 API 文档](/docs/openapi/v1) -- [Claude Code 官方文档](https://docs.anthropic.com/claude/docs) -- [集成工具 GitHub 仓库](https://github.com/musistudio/claude-code-router) +- [API Document](/docs/openapi/v1) +- [Claude Code Docs](https://docs.anthropic.com/claude/docs) +- [claude-code-router GitHub Repo](https://github.com/musistudio/claude-code-router) diff --git a/docs_overseas/integrations/intro.md b/docs_overseas/integrations/intro.md index 1bf0786a16772ef0778ec995b53e0d8e2995ebdc..4b34a1a2c2e6f497ba8128b0fadfa11e4b87ffa7 100644 --- a/docs_overseas/integrations/intro.md +++ b/docs_overseas/integrations/intro.md @@ -41,7 +41,7 @@ On the Serverless API page, select your desired model and click "Call" to retrie {{SITE_URL}}/v1/chat/completions ``` -![alt text](/img/serverless-api/integrated/integrate1.png) +![alt text](/img/serverless-api/integrated/integrate3.overseas.png) ### Configure the API Endpoint diff --git a/docs_overseas/organization/access-token.md b/docs_overseas/organization/access-token.md index a8f92c361553509b08db9f02e890e742403caea2..186ee86bd36b65f702803a4139ed73f99f0b822f 100644 --- a/docs_overseas/organization/access-token.md +++ b/docs_overseas/organization/access-token.md @@ -9,15 +9,15 @@ Access tokens are identity credentials for calling MoArk APIs, supporting fine-g ## Creating Access Tokens -1. Go to [**工作台->设置->访问令牌**]({{SITE_URL}}/dashboard/settings/tokens) +1. Go to [**Dashboard -> Settings -> Access Token**]({{SITE_URL}}/dashboard/settings/tokens) 2. Click "+ New Access Token" and fill in the token name (e.g., "Personal Project Call"). 3. Select the authorization scope: - **Authorize All Resources**: Can access all Serverless API resource packages you have purchased, including newly purchased resources in the future. If there is no need to specify fixed resource packages, this method is recommended. +**Authorize All Resources**: Can access all Serverless API resource packages you have purchased, including newly purchased resources in the future. If there is no need to specify fixed resource packages, this method is recommended. - **Authorize Partial Resources**: Manually check specific resource packages (e.g., only select "Full Model Resource Package", "Muxi Resource Package"), allowing calls only to the model interfaces included in the selected resource packages. +**Authorize Partial Resources**: Manually check specific resource packages (e.g., only select "Full Model Resource Package", "Muxi Resource Package"), allowing calls only to the model interfaces included in the selected resource packages. - ![image](../../static/img/purchase/purchase07.png) +![image](../../static/img/purchase/purchase07.overseas.png) **Prioritize Token-based Billing**: Some models support both per-call and token-based billing. After checking this option, the corresponding models called using the token will be billed by the number of tokens; otherwise, per-call billing is used by default. You can decide whether to check this based on your call situation to minimize costs. :::warning @@ -32,24 +32,12 @@ Created tokens can be modified: - **Name**: Directly edit the token identifier; - **Resource Authorization**: Switch between "All Resources/Partial Resources" and recheck the authorized resource packages; -![image](../../static/img/purchase/purchase06.png) +![image](../../static/img/purchase/purchase06.overseas.png) -## Generating Temporary Tokens - -To enhance client usage security, short-term valid temporary tokens can be generated: - -1. Use an already created access token to call the API to generate a temporary token. For details, see [Create Temporary Access Token]({{SITE_URL}}/docs/openapi/v1#tag/ai应用市场接口). -2. Temporary tokens are valid for 1 hour by default, and the expiration time can be specified in the interface (maximum 24 hours). -3. Usage: Suitable for scenarios where front-end pages or clients call APIs directly, avoiding long-term token leakage. - -:::warning - -1. The created temporary token is bound to the "access token" used for authentication when creating the temporary token. Therefore, changes to the permissions of this "access token" and deletion operations will affect the temporary token. It is recommended to create a separate "access token" for generating temporary tokens and avoid changing this token. - ::: ## Organization Access Tokens Organization access tokens are used to call resources under the organization's name and are uniformly created and managed by administrators. -1. Go to the [组织工作台 > 设置 > 访问令牌]({{SITE_URL}}/dashboard/settings/tokens) page. +1. Go to the [Organization Dashboard > Settings > Access Token]({{SITE_URL}}/dashboard/settings/tokens) page. 2. Click "+ New Organization Token" and select the authorized resource scope (same as personal tokens). 3. After the token is created, it can be shared with organization members for API calls, but can only access organizational resources. 4. Administrators can view call records in the token list or disable abnormal tokens. diff --git a/docs_overseas/organization/organizations.md b/docs_overseas/organization/organizations.md index 8261f41824ab43fbfa90fe43a771ce47285198ef..c628d45a4850524e7baaf9932d56826f50ce0591 100644 --- a/docs_overseas/organization/organizations.md +++ b/docs_overseas/organization/organizations.md @@ -12,63 +12,39 @@ MoArk allows users to create organizations and synchronize Gitee organizations. ### Create a New Organization -1. Go to [**工作台->设置->组织管理->新建组织**]({{SITE_URL}}/dashboard/settings/organizations) on MoArk, fill in the relevant information, and you can create a new organization. +1. Go to [**Dashboard -> Settings -> Organization Management -> Create New Organization**]({{SITE_URL}}/dashboard/settings/organizations) on MoArk, fill in the relevant information, and you can create a new organization. - ![alt text](/img/organization/image-01.png) +![alt text](/img/organization/image-01.overseas.png) 2. After entering the creation page, fill in the organization information: - Organization Name: e.g., "XX Company AI Team". +Organization Name: e.g., "XX Company AI Team". - Organization Space Address: A unique identifier used to access the organization homepage ({{SITE_URL}}/[空间地址])。 +Organization Space Address: A unique identifier used to access the organization homepage ({{SITE_URL}}/[you_org_path])。 - Organization Description: Describe the purpose of the organization, which will be displayed on the organization homepage. +Organization Description: Describe the purpose of the organization, which will be displayed on the organization homepage. - Click "**Create Organization**" to complete the creation. The system will automatically create the organization and set you as the administrator. +Click "**Create Organization**" to complete the creation. The system will automatically create the organization and set you as the administrator. - ![alt text](/img/organization/image-0.png) +![alt text](/img/organization/image-0.overseas.png) -### Synchronize Gitee Organizations +## Organization Dashboard -If you already have an organization on Gitee, you can directly synchronize it to MoArk: - -1. When creating an organization, select the Gitee organization you want to synchronize, and the synchronization will be completed. - - ![alt text](/img/organization/image02.png) - -2. The system will list the organizations you have on Gitee. Check the organizations you want to synchronize, click "**Sync Selected Organizations**". -3. After synchronization, the organization information (name, members, permissions) will be synchronized in real time with Gitee. - -#### Synchronization Content - -- Organization Information Synchronization: Organization information on Gitee will be synchronized in real time to MoArk. The organization information includes organization name, organization space address, organization description, website. -- Organization Member Synchronization: The first synchronization will synchronize all members. Subsequent synchronizations need to be done on the organization workspace - member management page, click "**Sync Members**". - - ![alt text](/img/organization/image03.png) - -## Organization Homepage - -In addition to personal homepages, each organization has an organization homepage. Both internal and external members can view the organization's profile, members, and public resources. You can click the organization logo on your personal homepage to view the homepage of the affiliated organization, or click the organization name when browsing resources to view its homepage. - - ![alt text](/img/organization/image-1.png) - -## Organization Workbench - -MoArk's workbench is divided into personal and organizational. If you have joined an organization, on the workbench interface, click the username to switch to the corresponding organization workbench. The organization workbench provides centralized resource management capabilities for the team. The differences from the personal workbench are: +MoArk's Dashboard is divided into personal and organizational. If you have joined an organization, on the dashboard interface, click the username to switch to the corresponding organization workbench. The organization workbench provides centralized resource management capabilities for the team. The differences from the personal workbench are: - **Resource Scope**: Only displays models, datasets, applications, and purchased resource packages under the organization's name. - **Permission Control**: Administrators can view all resources, while ordinary members can only view authorized resources. - **Exclusive Functions**: Includes functions such as organization member management, resource sharing settings, and team statistical reports. - ![alt text](/img/organization/image.png) +![alt text](/img/organization/image.overseas.png) ## Organization Management ### Modify Organization Information -Administrators can modify the following organization information in [**组织工作台->设置->组织管理->组织信息**]({{SITE_URL}}/dashboard/settings/organizations) .It also supports synchronizing organization information modified by users on Gitee. +Administrators can modify the following organization information in [**Organization Dashboard -> Settings -> Organization Management -> Organization Information**]({{SITE_URL}}/dashboard/settings/organizations) .It also supports synchronizing organization information modified by users on Gitee. - ![alt text](/img/organization/image-2.png) +![alt text](/img/organization/image-2.overseas.png) ### Organization Member Management @@ -76,7 +52,7 @@ Administrators can modify the following organization information in [**组织工 2. Click "Manage Members > Add Members", select the organization permissions (Administrator/Developer) for the invited members, copy the link address or share the invitation QR code to add members. You can also directly enter the personal space address of the Gitee user or a complete email address to add members directly. - ![alt text](/img/organization/image04.png) +![alt text](/img/organization/image04.overseas.png) 3. Remove members: Administrators click "Manage Members", select the corresponding member and remove them. After confirmation, the member will lose access to organization resources. @@ -87,10 +63,6 @@ MoArk's organization roles are divided into administrators and ordinary members. | Operation | Administrator | Ordinary Member | | :------------------ | :------------ | --------------- | -| Create Model | ✓ | ✓ | -| Create Dataset | ✓ | ✓ | -| Create Application | ✓ | | -| Create Model Engine | ✓ | | | Create Serverless API | ✓ | | | Create Organization Access Token | ✓ | | | Manage Members | ✓ | | @@ -99,22 +71,6 @@ MoArk's organization roles are divided into administrators and ordinary members. Ordinary members can view the resources and usage logs created in the organization workbench. -## Organization Resource Sharing - -Organization resources are private by default, and can be shared in the following ways: - -1. **Model/Dataset Sharing**: - - When creating a resource, select the organization as the resource owner. - - Enter the resource details page, in the "Settings > Permission Management" section, check "Allow all members of the organization to access". - -2. **Application Collaboration Development**: - - In the application details page, in the "Members Management" section, add organization members and assign the "Developer" role. - - The added members can clone the application repository, submit code, and participate in development. - ## Organization Access Token Organization access tokens are used to call resources under the organization, and are created and managed uniformly by administrators. For details, please see [Access Token](/docs/organization/access-token#%E7%BB%84%E7%BB%87%E8%AE%BF%E9%97%AE%E4%BB%A4%E7%89%8C) . diff --git a/docs_overseas/organization/workbench.md b/docs_overseas/organization/workbench.md index 121a65b73615a7594fbf89082aeacf84b0f91599..80fbed397f316c1257a380b99e8c6c6f0b1ea3b4 100644 --- a/docs_overseas/organization/workbench.md +++ b/docs_overseas/organization/workbench.md @@ -2,18 +2,18 @@ sidebar_position: 1 --- -# Personal Workbench +# Personal Dashboard ## Introduction -The Personal Workbench is your core entry point for resource management, cost viewing, and functional operations on MoArk. It integrates multi-dimensional information and operation modules to facilitate efficient use of platform services. +The Personal Dashboard is your core entry point for resource management, cost viewing, and functional operations on MoArk. It integrates multi-dimensional information and operation modules to facilitate efficient use of platform services. -After successful login, you will be automatically redirected to the workbench interface. You can also click the MoArk LOGO or the workbench button in the top navigation to enter the Personal Workbench interface. The workbench interface integrates all core function entrances: +After successful login, you will be automatically redirected to the dashboard interface. You can also click the MoArk LOGO or the dashboard button in the top navigation to enter the Personal dashboard interface. The dashboard interface integrates all core function entrances: - **Resource Management**: Includes functions such as Serverless API, Model Engine, Applications, Model Fine-tuning, Models and Datasets, allowing you to browse/manage resources you have created or favorited. - **Cost Center**: View account balance, order management, invoice management, and coupon usage. - **Settings Entrance**: You can click the settings icon at the bottom of the left navigation bar or access the settings interface from the drop-down menu of the avatar in the upper right corner to configure personal information, access tokens, etc. - **Community Updates**: Real-time push of the latest platform news, such as in-depth model analysis, free resource opening notifications, popular model online experiences, etc. -![alt text](/img/organization/personaldashboardimg1.png) +![alt text](/img/organization/personaldashboardimg1.overseas.png) ## Personal Information Settings @@ -34,6 +34,6 @@ Personal information is synchronized with your Gitee account in real-time and do This module provides comprehensive data tracking of your MoArk resource usage, covering usage statistics and activity logs, helping you accurately grasp resource consumption and troubleshoot call issues. -**Usage Statistics**: Go to [工作台 > 统计与日志 > 用量统计]({{SITE_URL}}/dashboard/statistics/usage-statistics) to view macro data statistics of Serverless API calls. You can quickly understand the distribution of core indicators of resource usage, identify frequently called and time-consuming resources, and provide data support for resource optimization and cost control. +**Usage Statistics**: Go to [Dashboard > Statistics and Logs > Usage Statistics]({{SITE_URL}}/dashboard/statistics/usage-statistics) to view macro data statistics of Serverless API calls. You can quickly understand the distribution of core indicators of resource usage, identify frequently called and time-consuming resources, and provide data support for resource optimization and cost control. **Call Logs**: Provide detailed behavior records of resource calls, support conditional filtering, accurately locate detailed information of each API call, and can be exported as CSV for auditing. \ No newline at end of file diff --git a/docs_overseas/products/apis/3d/index.md b/docs_overseas/products/apis/3d/index.md index d8c065a7dff207fced6c4cf4fc251b003778172f..143f96550689f3dbf663d0ac512344e23528ddd6 100644 --- a/docs_overseas/products/apis/3d/index.md +++ b/docs_overseas/products/apis/3d/index.md @@ -27,7 +27,7 @@ Taking the `Hunyuan3D-2` model as an example, the model takes images as input an The actual 3D effects are shown below: -![3D](/img/serverless-api/hunyuan3d.jpg) +![3D](/img/serverless-api/hunyuan3d.overseas.jpg) ## Asynchronous Invocation Sample Code diff --git a/docs_overseas/products/apis/documents/pdf.md b/docs_overseas/products/apis/documents/pdf.md index 92c4f4553a592a97a48647f447b54795482141cb..4e9e489ba06f17d28aa06acb19b178c5e2ebf2c6 100644 --- a/docs_overseas/products/apis/documents/pdf.md +++ b/docs_overseas/products/apis/documents/pdf.md @@ -67,7 +67,7 @@ You can click [PDF-Extract-Kit]({{SITE_URL}}/serverless-api?model=PDF-Extract-Ki ### Usage Example -![image-20250114152140833](../../pdf.assets/pdf.png) +![image-20250114152140833](../../pdf.assets/pdf.overseas.png) This interface is asynchronous. You need to submit the task first, obtain the task ID, and then poll for the execution result based on the ID. After submitting the task via CURL, the response will be: diff --git a/docs_overseas/products/apis/images-vision/controlnet.md b/docs_overseas/products/apis/images-vision/controlnet.md index 537ad2f359f19f1141ac77a588ae9e09b25ff11a..f7f0a47b85dbe80a54a87b6b16c4e22593289b1f 100644 --- a/docs_overseas/products/apis/images-vision/controlnet.md +++ b/docs_overseas/products/apis/images-vision/controlnet.md @@ -16,10 +16,10 @@ sidebar_position: 8 ### Function Description -The Serverless API provides an interface for quick experience, allowing you to quickly test the API效果. +The Serverless API provides an interface for quick experience, allowing you to quickly test the API effects. Open the [Serverless API page]({{SITE_URL}}/serverless-api?model=FLUX.1-dev&operation=333), find the `FLUX.1-dev` model under Image Generation and Processing, and click to enter the interface details page. -![image](/img/serverless-api/flux-1-dev-controlnet.png) +![image](/img/serverless-api/flux-1-dev-controlnet.overseas.png) In the text-to-image (ControlNet) interface, after enabling the ControlNet function, you need to set parameters for the ControlNet model. diff --git a/docs_overseas/products/apis/images-vision/fuzzy.md b/docs_overseas/products/apis/images-vision/fuzzy.md index 707ad151ca349c2eba9fa12d726add75afc32f48..671cf6244d885278687481fce59250968e59a02f 100644 --- a/docs_overseas/products/apis/images-vision/fuzzy.md +++ b/docs_overseas/products/apis/images-vision/fuzzy.md @@ -22,10 +22,10 @@ In this article, we use the style transfer API to quickly implement image filter ### Function Description -The Serverless API provides an interface for quick experience, allowing you to quickly test the API效果. +The Serverless API provides an interface for quick experience, allows you to quickly test the API effects. Open the [Serverless API page]({{SITE_URL}}/serverless-api?model=Kolors&operation=41), find the `Kolors` model under Image Generation and Processing, click to enter the interface details page, and switch to the style transfer API. -![image-20250113153212170](../../fuzzy.assets/style_web.jpg) +![image-20250113153212170](../../fuzzy.assets/style_web.png) In the style transfer interface, the original image refers to the image you want to transform and modify. The prompt and style image are the text and style reference used to guide the modification of the original image. @@ -43,11 +43,11 @@ Use an ordinary landscape photo as the original image. Fill in these images on the page. To make the output image more consistent with the original, we set the strength parameter to 0.4. -![image-20250113173048253](../../fuzzy.assets/image-20250113173048253.png) +![image-20250113173048253](../../fuzzy.assets/result01.png) The output result is as follows: -![image-20250113173107828](../../fuzzy.assets/image-20250113173107828.png) +![image-20250113173107828](../../fuzzy.assets/result02.png) ### Fluffy Style Transfer @@ -59,11 +59,11 @@ Following the same steps as above, we can quickly replicate the fluffy image sty The input is as follows: -![image-20250114144653414](../../fuzzy.assets/image-20250114144653414.png) +![image-20250114144653414](../../fuzzy.assets/result03.png) The output result is as follows: -![image-20250114144718497](../../fuzzy.assets/image-20250114144718497.png) +![image-20250114144718497](../../fuzzy.assets/result04.png) ## Calling the Style Transfer API diff --git a/docs_overseas/products/apis/images-vision/inpainting.md b/docs_overseas/products/apis/images-vision/inpainting.md index 7109ada820ec70e0a038373e35888bac63ef8c10..73580d85ebabb349a0744ecd5e09bd53fff382b3 100644 --- a/docs_overseas/products/apis/images-vision/inpainting.md +++ b/docs_overseas/products/apis/images-vision/inpainting.md @@ -21,7 +21,7 @@ In short, the Image Prompting feature enables you to generate a new image relate Upload reference image -> Enter prompt -> Input other parameters -> Click run -![Image](https://foruda.gitee.com/images/1729563843676749379/6ca35c1d_14415575.jpeg) +![Image](../../../../static/img/serverless-api/inpainting.overseas.png) ## Example Effects diff --git a/docs_overseas/products/apis/images-vision/lora.md b/docs_overseas/products/apis/images-vision/lora.md index 08471ef63ffa320ec60ba50c3f736db16cf791b6..26d4dba63de59f4ae80af478fc5257014ebe335a 100644 --- a/docs_overseas/products/apis/images-vision/lora.md +++ b/docs_overseas/products/apis/images-vision/lora.md @@ -24,7 +24,7 @@ sidebar_position: 7 The Serverless API provides an interface for quick experience, allowing you to quickly test the API效果. Open the [Serverless API page]({{SITE_URL}}/serverless-api?model=flux-1-dev), find the `Flux.1-dev` model under Image Generation and Processing, and click to enter the interface details page. -![image](/img/serverless-api/flux-1-dev-lora.png) +![image](/img/serverless-api/flux-1-dev-lora.overseas.png) In the text-to-image API, within the LoRA settings: `url` is the URL of the LoRA model to be loaded; `weight` is used for weighted fusion between different LoRA model weights; `lora_scale` is the degree of influence the LoRA model has on the base model. diff --git a/docs_overseas/products/apis/images-vision/partial-repaint.md b/docs_overseas/products/apis/images-vision/partial-repaint.md index b407d237c1207c36da7e3a56786fc8e175c3cfac..75edc2374967b0d7200fb2f19a3510ae81e161b4 100644 --- a/docs_overseas/products/apis/images-vision/partial-repaint.md +++ b/docs_overseas/products/apis/images-vision/partial-repaint.md @@ -20,14 +20,14 @@ In short, the partial redrawing feature enables you to modify or replace content Upload original image -> Upload layer mask -> Enter prompt -> Input other parameters -> Click run -![Partial Redrawing](https://foruda.gitee.com/images/1729564620777315028/0737ae03_14415575.jpeg) +![Partial Redrawing](../../../../static/img/serverless-api/partial-repaint.overseas.png) ## Example Effects | Reference Image | Layer Mask | prompt | Result | | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | -| ![Image](https://foruda.gitee.com/images/1729492589364653082/4af32ae7_14415575.png) | ![Image](https://foruda.gitee.com/images/1729492604658575880/02103d7d_14415575.png) | 穿着美少女战士的衣服,一件类似于水手服风格的衣服,包括一个白色紧身上衣,前胸搭配一个大大的红色蝴蝶结。衣服的领子部分呈蓝色,并且有白色条纹。她还穿着一条蓝色百褶裙,超高清,辛烷渲染,高级质感,32k,高分辨率,最好的质量,超级细节,景深 | ![Image](https://foruda.gitee.com/images/1729510320514796520/affd853e_14415575.jpeg) | -| ![Image](https://foruda.gitee.com/images/1729492724529895938/8039019e_14415575.png) | ![Image](https://foruda.gitee.com/images/1729492743609546551/870abb50_14415575.png) | 这是一幅令人垂涎欲滴的火锅画面,各种美味的食材在翻滚的锅中煮着,散发出的热气和香气令人陶醉。火红的辣椒和鲜艳的辣椒油熠熠生辉,具有诱人的招人入胜之色彩。锅内肉质细腻的薄切牛肉、爽口的豆腐皮、鲍汁浓郁的金针菇、爽脆的蔬菜,融合在一起,营造出五彩斑斓的视觉呈现 | ![Image](https://foruda.gitee.com/images/1729510496525173718/68e75386_14415575.jpeg) | +| ![Image](https://foruda.gitee.com/images/1729492589364653082/4af32ae7_14415575.png) | ![Image](https://foruda.gitee.com/images/1729492604658575880/02103d7d_14415575.png) | Wearing a Sailor Moon outfit, a dress similar to a sailor suit style, including a white fitted top with a large red bow on the chest. The collar of the outfit is blue with white stripes. She is also wearing a blue pleated skirt, ultra HD, octane rendering, high-end texture, 32k, high resolution, best quality, super detail, depth of field. | ![Image](../../../../static/img/serverless-api/partial-repaint-example1.png) | +| ![Image](https://foruda.gitee.com/images/1729492724529895938/8039019e_14415575.png) | ![Image](https://foruda.gitee.com/images/1729492743609546551/870abb50_14415575.png) | This is a mouthwatering hot pot scene, with various delicious ingredients boiling in the pot, emitting steam and aroma that is intoxicating. The fiery red chili peppers and vibrant chili oil shine brightly, possessing an enticing and captivating color. Inside the pot, the delicate thinly sliced beef, refreshing tofu skin, richly flavored enoki mushrooms, and crisp vegetables blend together, creating a colorful visual presentation. | ![Image](https://foruda.gitee.com/images/1729510496525173718/68e75386_14415575.jpeg) | ## Usage Scenarios diff --git a/docs_overseas/products/apis/images-vision/text2image.md b/docs_overseas/products/apis/images-vision/text2image.md index f11aea7cc5bc299627f13d2c5097111b3f40387a..0ce862a4a63d2f736202abf6b55e0cbb93f11276 100644 --- a/docs_overseas/products/apis/images-vision/text2image.md +++ b/docs_overseas/products/apis/images-vision/text2image.md @@ -10,7 +10,7 @@ import ServerlessAPIServices from '@site/src/components/ServerlessAPIServices'; Text-to-image models can generate corresponding images based on text descriptions input by users. These models support various styles and themes, capable of producing high-quality images suitable for multiple fields such as creative design and artistic creation. -![Model Parameters](/img/serverless-api/model-args.jpg) +![Model Parameters](/img/serverless-api/model-args.overseas.jpg) :::info Note Although they are all text-to-image models, different models may have inconsistent calling parameters. For specific parameters and their meanings, please refer to the experience interface of the corresponding model. @@ -20,7 +20,7 @@ Although they are all text-to-image models, different models may have inconsiste MoArk provides a rich selection of text-to-image models. You can view and experience these models in the [Model Square]({{SITE_URL}}/serverless-api#image_generation). - + ## Calling Text-to-Image Models diff --git a/docs_overseas/products/apis/images-vision/visions.md b/docs_overseas/products/apis/images-vision/visions.md index 09503c0fc2bdfeda37dcf62697ba03d39e3185e8..977dccb6d89ce8d9e060867abd47cc8272a58f85 100644 --- a/docs_overseas/products/apis/images-vision/visions.md +++ b/docs_overseas/products/apis/images-vision/visions.md @@ -14,13 +14,13 @@ The core capabilities of vision models include image recognition, content unders ## Vision Models Overview - + ## Usage Method Provide an image along with corresponding prompts, and the model will return text-based results according to the requirements specified in the prompts. -![Vision Model Experience](/img/serverless-api/visions.jpg) +![Vision Model Experience](/img/serverless-api/visions.overseas.jpg) ## Example Code diff --git a/docs_overseas/products/apis/index.md b/docs_overseas/products/apis/index.md index 664b9d32e1bdf90eedff3e8fb28763fec7a86d47..3dd1d77c920dc320d11237e677d9ab4b7975d388 100644 --- a/docs_overseas/products/apis/index.md +++ b/docs_overseas/products/apis/index.md @@ -26,7 +26,7 @@ More model API services are gradually added... 2. **Purchase Resource Pack:** In the Model Hub, click [Purchase Full Model Resource Pack]({{SITE_URL}}/serverless-api/order?package=1910) to purchase a resource pack for yourself or your organization. 3. **Create Order and Payment:** After completing the payment, you can experience all the models on [Model Hub]({{SITE_URL}}/serverless-api) or call the API to integrate these models into your applications. -![Purchase Full Model Resource Pack](/img/purchase/purchase03.png) +![Purchase Full Model Resource Pack](/img/purchase/purchase03.overseas.png) **Billing Information:** @@ -35,30 +35,19 @@ More model API services are gradually added... For more information on purchasing model resource packs, please visit [Purchase Model Resource Packs](/docs/billing/purchase). -## 本地调用 API 进行推理 (等有操作界面再更改) +Local API call for inference (to be changed when there is an operational interface) -如果您想要通过 Serverless API 进行模型推理,请遵循以下步骤: +If you want to perform model inference through the Serverless API, please follow the steps below: -1. **创建访问令牌**:您需要登录账号,前往 [**工作台->设置->访问令牌**]({{SITE_URL}}/dashboard/settings/tokens) ,创建一个授权访问所选资源的令牌;如果您希望为某个“访问令牌”绑定某个资源包,也可以创建一个支持访问“部分资源”的“访问令牌”。 -2. **调用 Serverless API**:在 [AI 模型广场]({{SITE_URL}}/serverless-api) 中,选择已购的模型资源包 +1. **Create Access Token**: You need to log in to your account, go to [**Dashboard -> Settings -> Access Tokens**]({{SITE_URL}}/dashboard/settings/tokens), and create a token that authorizes access to the selected resources; if you want to bind a specific resource package to an "access token," you can also create an "access token" that supports access to "partial resources." +2. **Call Serverless API**: In the [AI Model Plaza]({{SITE_URL}}/serverless-api), select the purchased model resource package. - ![选择模型资源包](/img/serverless-api/select-api.png) + ![Select model resource package](/img/serverless-api/select-api.overseas.png) - 点击 `体验` 所需模型 - ![体验模型](/img/serverless-api/experience-api.png) +3. **Local API invocation for inference**: It can be tested normally through the widget, and you can choose to call in "API" form, selecting the corresponding programming language or tool, such as Python. Check "Add token" to copy the corresponding code for local execution. Currently, we only provide examples in Python/JavaScript/cURL; other languages can refer to these examples for writing. - 选择有授权对应资源包的访问令牌 - - ![选择授权该资源包的令牌](/img/serverless-api/select-token.png) - - 若您购买了全模型资源包,则可以调用 [AI 模型广场]({{SITE_URL}}/serverless-api) 的所有模型 - - ![全模型调用](/img/serverless-api/all-api.png) - -3. **本地调用 API 进行推理**:通过挂件测试正常,可以选择 “API” 形式调用,选择对应的编程语言或者工具,例如 Python,勾选 “添加令牌”,即可拷贝对应的代码在本地进行执行。我们暂时只给出了 Python/JavaScript/cURL 的示例,其他语言可以参考这些示例进行编写。 - - ![本地调用 API ](/img/base/serverless-api-call.png) + ![本地调用 API ](/img/base/serverless-api-call.overseas.png) ## Failover Mechanism diff --git a/docs_overseas/products/apis/speeches/speech-recognition.md b/docs_overseas/products/apis/speeches/speech-recognition.md index edf3b6cb2024bcfe5d58c5873f401721514639ce..7ed40219e296266e1d68731add86550777d84ea8 100644 --- a/docs_overseas/products/apis/speeches/speech-recognition.md +++ b/docs_overseas/products/apis/speeches/speech-recognition.md @@ -22,7 +22,7 @@ Taking the `SenseVoiceSmall` model as an example, the model takes audio files as As shown in the figure below: -![Speech Recognition](/img/serverless-api/speech-recognition.jpg) +![Speech Recognition](/img/serverless-api/speech-recognition.overseas.jpg) ## Example Code diff --git a/docs_overseas/products/apis/speeches/text-to-speech.md b/docs_overseas/products/apis/speeches/text-to-speech.md index 696b89a199e58247368a31563750c54eda214b28..fcb790a3f08bd505748b0c74785c5267729636ef 100644 --- a/docs_overseas/products/apis/speeches/text-to-speech.md +++ b/docs_overseas/products/apis/speeches/text-to-speech.md @@ -24,7 +24,7 @@ Taking the `F5-TTS` model as an example, the model takes text content as input a As shown in the figure below: -![Text-to-Speech](/img/serverless-api/text2speech.jpg) +![Text-to-Speech](/img/serverless-api/text2speech.overseas.png) Additionally, you can customize the voiceprint. `F5-TTS` requires recording a sample audio in `WAV` format along with the corresponding text content of the recording as voiceprint information. diff --git a/docs_overseas/products/apis/speeches/voiceprint.md b/docs_overseas/products/apis/speeches/voiceprint.md index 8ade97761f4e3f5bf0f3113984871c55f40735e2..44406cfa0b53b074e7225e03fd6a779cfde03639 100644 --- a/docs_overseas/products/apis/speeches/voiceprint.md +++ b/docs_overseas/products/apis/speeches/voiceprint.md @@ -19,19 +19,19 @@ Currently, most text-to-speech models available on Model Plaza support voiceprin Some models do not support custom voiceprints; they have a few built-in voiceprint options, and users can directly use these models for text-to-speech. For example, [Spark-TTS-0.5B]({{SITE_URL}}/serverless-api?model=Spark-TTS-0.5B) allows selecting built-in male and female voiceprints. -![Spark-TTS](/img/serverless-api/spark-tts.jpg) +![Spark-TTS](/img/serverless-api/spark-tts.overseas.png) ## 2. Directly Using Recordings as Voiceprints [IndexTTS-1.5]({{SITE_URL}}/serverless-api?model=IndexTTS-1.5) uses recordings as voiceprint information. Users only need to upload an audio file, and the model will automatically extract sound features from the audio for text-to-speech. -![Index-TTS](/img/serverless-api/index-tts.jpg) +![Index-TTS](/img/serverless-api/index-tts.overseas.jpg) ## 3. Using Recordings with Corresponding Text as Voiceprints As shown in the figure below, the voiceprint requirements for models [F5-TTS]({{SITE_URL}}/serverless-api?model=F5-TTS), [CosyVoice2-0.5B]({{SITE_URL}}/serverless-api?model=CosyVoice2-0.5B), and [Step-Audio-TTS-3B]({{SITE_URL}}/serverless-api?model=Step-Audio-TTS-3B) all require recording a sample audio in WAV format, along with the text content corresponding to the recording as voiceprint information. Please use recording software to record audio with clear articulation. The recommended duration is 5-15 seconds, and the file format is .wav. It is advisable that the file size is not too large. -![Text-to-Speech](/img/serverless-api/text2speech.jpg) +![Text-to-Speech](/img/serverless-api/text2speech.overseas.png) ## 4. Using .pt Format Voiceprint Files @@ -46,7 +46,7 @@ You only need to configure `voice_url` in the parameter settings of the speech g 3. Copy the download address to the `voice_url` parameter in the model as shown in the figure below. Finally, enter the text and run it to generate a sound with the same timbre as the file. -![alt text](/img/serverless-api/voiceurl2.png) +![alt text](/img/serverless-api/voiceurl2.overseas.png) ### Step 1: Create .pt Format Voiceprint Files diff --git a/docs_overseas/products/apis/texts/function-calling.md b/docs_overseas/products/apis/texts/function-calling.md index 122e03cd8db8e3e1116f4083125e7fe82f6d100d..b215d2b340bc14ae745bfd380c2983951ad0355c 100644 --- a/docs_overseas/products/apis/texts/function-calling.md +++ b/docs_overseas/products/apis/texts/function-calling.md @@ -136,7 +136,7 @@ pip install \ -i https://mirrors.cloud.tencent.com/pypi/simple ``` -You can also use the [**langchain 的 JavaScript 版本**](https://js.langchain.com/docs/introduction/) +You can also use the [**JavaScript version of LangChain**](https://js.langchain.com/docs/introduction/) Using the `langchain @tool` decorator automatically converts functions into standardized `tools` parameters. Comments starting with """xxx""" and Annotated comments will be converted into the `description` field in the tools parameter. Using LangGraph's `create_react_agent` to create an `agent` automatically handles function calling, tool execution, and tool message feedback, greatly simplifying the workflow. @@ -153,7 +153,7 @@ from typing import AsyncIterator, Iterator, List, Optional, Annotated from langgraph.prebuilt import create_react_agent from langchain_core.messages import HumanMessage, AIMessage, AIMessageChunk, ToolMessage -# 仅用于个人学习演示: +# For personal learning demonstration only.: @tool def get_news(query: str): """Retrieve the latest news list and today's news. This tool provides popular news summaries, links, and covers for news with images.""" @@ -166,7 +166,7 @@ def get_news(query: str): # Truncate text to prevent excessive length and speed up AI processing return news[:4000] except Exception as e: - print("get_news 失败", e) + print("get_news fail", e) # This function has security risks and is for demonstration only – do not use in production environments: @tool diff --git a/docs_overseas/products/apis/texts/text-generation.md b/docs_overseas/products/apis/texts/text-generation.md index 8874857bb21b8bd7c708216815a6aa687859f692..55ea5ccba6b9dfb1f3075d86f8c1acd1f3aaf010 100644 --- a/docs_overseas/products/apis/texts/text-generation.md +++ b/docs_overseas/products/apis/texts/text-generation.md @@ -140,7 +140,7 @@ base_url = "{{SITE_URL}}/v1" model_name = "Qwen2.5-72B-Instruct" -# {{SITE_URL}}/dashboard/settings/tokens 获取您的访问令牌 +# {{SITE_URL}}/dashboard/settings/tokens Obtain your access token. GITEE_AI_API_KEY = "Your access token" client = OpenAI(base_url=base_url, api_key=GITEE_AI_API_KEY) @@ -170,14 +170,14 @@ For long text generation, enabling streamed response `stream=True` allows real-t ```python showLineNumbers title="python" from openai import OpenAI -# 初始化客户端 +# Initialize client client = OpenAI( base_url="{{SITE_URL}}/v1", api_key="Your access token" ) stream = client.chat.completions.create( - model="Qwen2.5-72B-Instruct",# 替换成指定模型名称 + model="Qwen2.5-72B-Instruct",# Replace with the specified model name. messages=[ {"role": "user", "content": "Write a short article about the development history of artificial intelligence."} ], @@ -264,7 +264,7 @@ const response = await client.responses.create({ }); console.log(response.output_text); -// 示例输出:"Oh honey, in JavaScript, semicolons are like the period at the end of a sentence—technically optional, but they help make things clear. I'd say go ahead and use them, so your code doesn't get confused!" +// Example output:"Oh honey, in JavaScript, semicolons are like the period at the end of a sentence—technically optional, but they help make things clear. I'd say go ahead and use them, so your code doesn't get confused!" ``` 2. **Message Roles**: Refined Scene Control** diff --git a/docs_overseas/products/apis/videos/index.md b/docs_overseas/products/apis/videos/index.md index 5a486c6ded4be09fd5f8b1d7a36cfc39fd2d0dc7..d667145607297e03efe627ab24e38655725fdd58 100644 --- a/docs_overseas/products/apis/videos/index.md +++ b/docs_overseas/products/apis/videos/index.md @@ -15,7 +15,7 @@ Currently, the video generation models available in the Model Plaza include: Enter a text description on the model usage interface, and the model will generate corresponding video content. Below is an example of using the `Wan2.1-T2V-14B` model: -![wan2.1-t2v](/img/serverless-api/wan-t2v.jpg) +![wan2.1-t2v](/img/serverless-api/wan-t2v.overseas.jpg) ## Sample Code All video models on ModelArk are invoked using asynchronous interfaces. For details, please refer to the sample code on the model experience page or the [Asynchronous Interface Usage Guide]({{SITE_URL}}/docs/openapi/v1#tag/Asynchronous-Tasks). diff --git a/docs_overseas/products/fuzzy.assets/result01.png b/docs_overseas/products/fuzzy.assets/result01.png new file mode 100644 index 0000000000000000000000000000000000000000..903e2c117bc08bafdba179aed455432ccf9b5ad4 Binary files /dev/null and b/docs_overseas/products/fuzzy.assets/result01.png differ diff --git a/docs_overseas/products/fuzzy.assets/result02.png b/docs_overseas/products/fuzzy.assets/result02.png new file mode 100644 index 0000000000000000000000000000000000000000..001d3cae97ad8dab558e907a0a8639c8f0a0b7a3 Binary files /dev/null and b/docs_overseas/products/fuzzy.assets/result02.png differ diff --git a/docs_overseas/products/fuzzy.assets/result03.png b/docs_overseas/products/fuzzy.assets/result03.png new file mode 100644 index 0000000000000000000000000000000000000000..ca482ecf50de65fe2690fd31b52a6161b5eb6847 Binary files /dev/null and b/docs_overseas/products/fuzzy.assets/result03.png differ diff --git a/docs_overseas/products/fuzzy.assets/result04.png b/docs_overseas/products/fuzzy.assets/result04.png new file mode 100644 index 0000000000000000000000000000000000000000..68fb0898d3223d09bc0ef2bd1810216c7666f2f7 Binary files /dev/null and b/docs_overseas/products/fuzzy.assets/result04.png differ diff --git a/docs_overseas/products/fuzzy.assets/style_web.jpg b/docs_overseas/products/fuzzy.assets/style_web.jpg deleted file mode 100644 index 926d92aba53b72ed251f1ee309f074f99f2fa833..0000000000000000000000000000000000000000 Binary files a/docs_overseas/products/fuzzy.assets/style_web.jpg and /dev/null differ diff --git a/docs_overseas/products/fuzzy.assets/style_web.png b/docs_overseas/products/fuzzy.assets/style_web.png new file mode 100644 index 0000000000000000000000000000000000000000..e76fd1917b67eadcdd0db19490c92588e8e44955 Binary files /dev/null and b/docs_overseas/products/fuzzy.assets/style_web.png differ diff --git a/docs_overseas/products/pdf.assets/pdf.overseas.png b/docs_overseas/products/pdf.assets/pdf.overseas.png new file mode 100644 index 0000000000000000000000000000000000000000..cfd533e738ecb4c4316b2dbed17b0efd6768b85f Binary files /dev/null and b/docs_overseas/products/pdf.assets/pdf.overseas.png differ diff --git a/docs_overseas/products/workflow/api.md b/docs_overseas/products/workflow/api.md index 0e9ca72fa6f94a1e1bcef2e802d5b55b6febc27d..75a4b11ca942a158992a9f533ba5f3ce8a8a0118 100644 --- a/docs_overseas/products/workflow/api.md +++ b/docs_overseas/products/workflow/api.md @@ -19,7 +19,7 @@ You can view detailed API calling instructions in the [API Documentation]({{SITE The access token is the credential for calling the API. You need to obtain your access token in [**Dashboard->Settings->Access Tokens**]({{SITE_URL}}/dashboard/settings/tokens). -![api](/img/serverless-api/integrated/integrate3.png) +![api](/img/serverless-api/integrated/integrate3.overseas.png) ## Calling Example ### Complete Guide to AI Image Generation —— One-stop Guide from Model Selection to API Deployment diff --git a/docs_overseas/products/workflow/node/index.md b/docs_overseas/products/workflow/node/index.md index 1fc5fd6b93734b097a03d439b75134d33f07d0d9..14a6e0c9143679c5adb884284b5101760356abd1 100644 --- a/docs_overseas/products/workflow/node/index.md +++ b/docs_overseas/products/workflow/node/index.md @@ -22,7 +22,7 @@ Receives variables from external sources and supports multiple input parameter t - **Number**: Only allows users to input numbers. - **Single File**: Allows application users to upload files individually, supporting documents, images, audio, and video files. Supports uploading files from local devices. -![Input Type Example](/img/workflow/input-1.png) +![Input Type Example](/img/workflow/input-1.overseas.png) ![Input Configuration Interface](/img/workflow/input-3.png) ### System Variables diff --git a/docs_overseas/products/workflow/quick-start.md b/docs_overseas/products/workflow/quick-start.md index acd5b82ede7f894154e22b87518bce6c193ffbf1..083c726e49f8ef24b5bf6d3b5337404d75336cf1 100644 --- a/docs_overseas/products/workflow/quick-start.md +++ b/docs_overseas/products/workflow/quick-start.md @@ -14,21 +14,22 @@ Below is a simple example demonstrating how to create an API pipeline. You can a Go to the [API Pipeline]({{SITE_URL}}/dashboard/workflows) page, click the **"New API Pipeline"** button to open the creation popup, enter the **Name** and **Description**, and create an API pipeline. -![Create New API Pipeline](/img/workflow/step-1.png) -![Create New API Pipeline](/img/workflow/step-2.png) +![Create New API Pipeline](/img/workflow/step-1.overseas.png) +![Create New API Pipeline](/img/workflow/step-2.overseas.png) ## Add a Start Node After successful creation, you will enter the current API pipeline page. Click to select the **"Start"** node, and the node details will be displayed on the right. Click the **"+"** button on the right side of the input field to add input variables. You can add multiple input variables as needed. For example, add a **Variable Name** called **"input"**. -![Configure Start Node](/img/workflow/step-3.png) -![Add Input Variable](/img/workflow/input-1.png) +![Configure Start Node](/img/workflow/step-3.overseas.png) +![Add Input Variable](/img/workflow/input-1.overseas.png) ## Add a Model Node Click the **"+"** button on the right side of the start node, and three options will appear: **"Model"**, **"Conditional Branch"**, and **"End"**. Click the **"Model"** option to create a model node. The details of the model node will be displayed on the right. In the model dropdown menu, select the model you need to call. Click the button on the right of "Interface" to pop up the **"Parameter Settings"** window, where you can set the corresponding model parameters. + ![Select Model](/img/workflow/model-1.png) ![Parameter Settings](/img/workflow/model-3.png) diff --git a/src/components/ServerlessAPIServices.jsx b/src/components/ServerlessAPIServices.jsx index 7ff5bb144c0b80c0d77a838102c189427baf0843..ebbbc9832fc303fd3e2c73fadbb31956fe8096cd 100644 --- a/src/components/ServerlessAPIServices.jsx +++ b/src/components/ServerlessAPIServices.jsx @@ -1,6 +1,7 @@ import React, { useEffect, useState } from 'react'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import Translate, { translate } from '@docusaurus/Translate'; +import { useLocation } from '@docusaurus/router'; /** API 请求配置 */ const API_CONFIG = { @@ -8,8 +9,6 @@ const API_CONFIG = { SERVERLESS_SERVICE_CATEGORY: 'serverless-service', }; - - /** 筛选器默认值 */ const FILTER_DEFAULTS = { ALL: 'all', @@ -69,12 +68,24 @@ function extractUniqueCategories(services) { }); } +/** + * 获取标签的显示名称(根据语言环境) + * @param {Object} tag - 标签对象 + * @param {boolean} isEnglish - 是否为英文环境 + * @returns {string} 标签显示名称 + */ +function getTagDisplayName(tag, isEnglish) { + if (!tag) return '-'; + return isEnglish && tag.en_name ? tag.en_name : tag.name; +} + /** * 获取服务的分类名称 * @param {Array} tags - 标签列表 + * @param {boolean} isEnglish - 是否为英文环境 * @returns {string} 分类名称,未找到时返回 '-' */ -function getServiceCategoryName(tags) { +function getServiceCategoryName(tags, isEnglish = false) { if (!tags?.length) return '-'; const categoryTag = tags.find((tag) => @@ -83,7 +94,7 @@ function getServiceCategoryName(tags) { ), ); - return categoryTag?.name || '-'; + return categoryTag ? getTagDisplayName(categoryTag, isEnglish) : '-'; } /** @@ -182,6 +193,7 @@ function FilterControls({ operationCount, onVendorChange, onTagChange, + isEnglish = false, }) { const selectStyle = { padding: '5px 8px', @@ -279,12 +291,12 @@ function FilterControls({ {translate({ id: 'serverlessAPI.filter.allCategories', message: '全部分类', - description: 'Option for all categories in filter' + description: 'Option for all categories in filter', })} {tags.map((tag) => ( ))} @@ -321,7 +333,12 @@ function FilterControls({ /** * 服务表格组件 */ -function ServicesTable({ services, showOperations, hostUrl }) { +function ServicesTable({ + services, + showOperations, + hostUrl, + isEnglish = false, +}) { const isMobile = typeof window !== 'undefined' && window.innerWidth <= 768; const renderOperationCell = (operation, ident, createdAt) => ( @@ -371,7 +388,7 @@ function ServicesTable({ services, showOperations, hostUrl }) { width={140} rowSpan={operationCount} > - {getServiceCategoryName(service.tags) || '-'} + {getServiceCategoryName(service.tags, isEnglish) || '-'} - {getServiceCategoryName(service.tags) || '-'} + {getServiceCategoryName(service.tags, isEnglish) || '-'} ); diff --git a/static/img/base/serverless-api-call.overseas.png b/static/img/base/serverless-api-call.overseas.png new file mode 100644 index 0000000000000000000000000000000000000000..3658ac9baeaf42924eb190bbfd43b521a0f339b9 Binary files /dev/null and b/static/img/base/serverless-api-call.overseas.png differ diff --git a/static/img/billing/image.overseas.png b/static/img/billing/image.overseas.png new file mode 100644 index 0000000000000000000000000000000000000000..b05a14d944d1e0c3863e3a3df49b324ef6eaa684 Binary files /dev/null and b/static/img/billing/image.overseas.png differ diff --git a/static/img/organization/image-0.overseas.png b/static/img/organization/image-0.overseas.png new file mode 100644 index 0000000000000000000000000000000000000000..8def0853e261c331cdc5714c9a1ba5ec6367cb0a Binary files /dev/null and b/static/img/organization/image-0.overseas.png differ diff --git a/static/img/organization/image-01.overseas.png b/static/img/organization/image-01.overseas.png new file mode 100644 index 0000000000000000000000000000000000000000..f89852bda3d75ee2dfdd0032673c1db80600f991 Binary files /dev/null and b/static/img/organization/image-01.overseas.png differ diff --git a/static/img/organization/image-2.overseas.png b/static/img/organization/image-2.overseas.png new file mode 100644 index 0000000000000000000000000000000000000000..f5302dd9b5b4b866a04d744af8010f4a85a9cf62 Binary files /dev/null and b/static/img/organization/image-2.overseas.png differ diff --git a/static/img/organization/image.overseas.png b/static/img/organization/image.overseas.png new file mode 100644 index 0000000000000000000000000000000000000000..b8b369c293fcca60a27aaf8f7ff30603faf4a7ee Binary files /dev/null and b/static/img/organization/image.overseas.png differ diff --git a/static/img/organization/image04.overseas.png b/static/img/organization/image04.overseas.png new file mode 100644 index 0000000000000000000000000000000000000000..17305dc627e78dd28c6f9828d39d9dd9be87c3bd Binary files /dev/null and b/static/img/organization/image04.overseas.png differ diff --git a/static/img/organization/personaldashboardimg1.overseas.png b/static/img/organization/personaldashboardimg1.overseas.png new file mode 100644 index 0000000000000000000000000000000000000000..e5cd9de213e820a0ac72c8057138423a24ea3782 Binary files /dev/null and b/static/img/organization/personaldashboardimg1.overseas.png differ diff --git a/static/img/purchase/purchase03.overseas.png b/static/img/purchase/purchase03.overseas.png new file mode 100644 index 0000000000000000000000000000000000000000..0cbc56e95447558c87e9ac77650c2cab7c4a23ce Binary files /dev/null and b/static/img/purchase/purchase03.overseas.png differ diff --git a/static/img/purchase/purchase06.overseas.png b/static/img/purchase/purchase06.overseas.png new file mode 100644 index 0000000000000000000000000000000000000000..e7d75e075614b025fa76efea0b75eecd88240572 Binary files /dev/null and b/static/img/purchase/purchase06.overseas.png differ diff --git a/static/img/purchase/purchase07.overseas.png b/static/img/purchase/purchase07.overseas.png new file mode 100644 index 0000000000000000000000000000000000000000..b8214b2151ac0859bcd281d0f8b1415aeaa467d6 Binary files /dev/null and b/static/img/purchase/purchase07.overseas.png differ diff --git a/static/img/serverless-api/api.overseas.jpg b/static/img/serverless-api/api.overseas.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2b63465c70174f7f54fe65d597b932af8604dfb4 Binary files /dev/null and b/static/img/serverless-api/api.overseas.jpg differ diff --git a/static/img/serverless-api/flux-1-dev-controlnet.overseas.png b/static/img/serverless-api/flux-1-dev-controlnet.overseas.png new file mode 100644 index 0000000000000000000000000000000000000000..d1a3545091befa3016f0cf97f3486df5fcfd9b1d Binary files /dev/null and b/static/img/serverless-api/flux-1-dev-controlnet.overseas.png differ diff --git a/static/img/serverless-api/flux-1-dev-lora.overseas.png b/static/img/serverless-api/flux-1-dev-lora.overseas.png new file mode 100644 index 0000000000000000000000000000000000000000..97e280e721acaa5bc64f1b31c0296996221002ec Binary files /dev/null and b/static/img/serverless-api/flux-1-dev-lora.overseas.png differ diff --git a/static/img/serverless-api/hunyuan3d.overseas.jpg b/static/img/serverless-api/hunyuan3d.overseas.jpg new file mode 100644 index 0000000000000000000000000000000000000000..58ff435d7c4474ab95cbf45faccb7bce0ff63edb Binary files /dev/null and b/static/img/serverless-api/hunyuan3d.overseas.jpg differ diff --git a/static/img/serverless-api/index-tts.overseas.jpg b/static/img/serverless-api/index-tts.overseas.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2cadad116b81a64f0baf4db5010a7b15be86571d Binary files /dev/null and b/static/img/serverless-api/index-tts.overseas.jpg differ diff --git a/static/img/serverless-api/inpainting.overseas.png b/static/img/serverless-api/inpainting.overseas.png new file mode 100644 index 0000000000000000000000000000000000000000..8a9a35f606fdf40547850edced7fd2c95166c704 Binary files /dev/null and b/static/img/serverless-api/inpainting.overseas.png differ diff --git a/static/img/serverless-api/integrated/integrate3.overseas.png b/static/img/serverless-api/integrated/integrate3.overseas.png new file mode 100644 index 0000000000000000000000000000000000000000..d2dc02211d73f62329feeae3ab101d0b4d0a4b0e Binary files /dev/null and b/static/img/serverless-api/integrated/integrate3.overseas.png differ diff --git a/static/img/serverless-api/model-args.overseas.jpg b/static/img/serverless-api/model-args.overseas.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7458842b81ccb200b076235882430e0464a3c407 Binary files /dev/null and b/static/img/serverless-api/model-args.overseas.jpg differ diff --git a/static/img/serverless-api/partial-repaint-example1.png b/static/img/serverless-api/partial-repaint-example1.png new file mode 100644 index 0000000000000000000000000000000000000000..dd81ab49fab97bad0d64c33cd67c0e4b2d565eb2 Binary files /dev/null and b/static/img/serverless-api/partial-repaint-example1.png differ diff --git a/static/img/serverless-api/partial-repaint.overseas.png b/static/img/serverless-api/partial-repaint.overseas.png new file mode 100644 index 0000000000000000000000000000000000000000..c2c610b61d1522b865df8a72b88fb4bfcc65ec59 Binary files /dev/null and b/static/img/serverless-api/partial-repaint.overseas.png differ diff --git a/static/img/serverless-api/select-api.overseas.png b/static/img/serverless-api/select-api.overseas.png new file mode 100644 index 0000000000000000000000000000000000000000..a39ecca684b535974691f0037b44cfb6d233033c Binary files /dev/null and b/static/img/serverless-api/select-api.overseas.png differ diff --git a/static/img/serverless-api/spark-tts.overseas.png b/static/img/serverless-api/spark-tts.overseas.png new file mode 100644 index 0000000000000000000000000000000000000000..dabf62c92d2e67bdc3d6ccdbd0617cbe91fcfd90 Binary files /dev/null and b/static/img/serverless-api/spark-tts.overseas.png differ diff --git a/static/img/serverless-api/speech-recognition.overseas.jpg b/static/img/serverless-api/speech-recognition.overseas.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8e6f196b6a5ea559fd73c1b295ee2256a7650959 Binary files /dev/null and b/static/img/serverless-api/speech-recognition.overseas.jpg differ diff --git a/static/img/serverless-api/text2speech.overseas.png b/static/img/serverless-api/text2speech.overseas.png new file mode 100644 index 0000000000000000000000000000000000000000..c7ad28d74ab7dba3ddc3dad38b95ad047d121a68 Binary files /dev/null and b/static/img/serverless-api/text2speech.overseas.png differ diff --git a/static/img/serverless-api/use.overseas.jpg b/static/img/serverless-api/use.overseas.jpg new file mode 100644 index 0000000000000000000000000000000000000000..674ac13af9f42b06494929268fd232c77998007b Binary files /dev/null and b/static/img/serverless-api/use.overseas.jpg differ diff --git a/static/img/serverless-api/visions.overseas.jpg b/static/img/serverless-api/visions.overseas.jpg new file mode 100644 index 0000000000000000000000000000000000000000..211367fb9afd2f50d59c2b8cee2972e101324d10 Binary files /dev/null and b/static/img/serverless-api/visions.overseas.jpg differ diff --git a/static/img/serverless-api/voiceurl2.overseas.png b/static/img/serverless-api/voiceurl2.overseas.png new file mode 100644 index 0000000000000000000000000000000000000000..b492c4cbc0eb43b1b265a117a655ea597d9f5f7e Binary files /dev/null and b/static/img/serverless-api/voiceurl2.overseas.png differ diff --git a/static/img/serverless-api/wan-t2v.overseas.jpg b/static/img/serverless-api/wan-t2v.overseas.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6987a62bf147c61826d2d5c8145c6f1b29477a2b Binary files /dev/null and b/static/img/serverless-api/wan-t2v.overseas.jpg differ diff --git a/static/img/workflow/img_1.png b/static/img/workflow/img_1.png new file mode 100644 index 0000000000000000000000000000000000000000..d2dc02211d73f62329feeae3ab101d0b4d0a4b0e Binary files /dev/null and b/static/img/workflow/img_1.png differ diff --git a/static/img/workflow/input-1.overseas.png b/static/img/workflow/input-1.overseas.png new file mode 100644 index 0000000000000000000000000000000000000000..6a9bb9c1203756e8101cbb18fbfdc39ea9969554 Binary files /dev/null and b/static/img/workflow/input-1.overseas.png differ diff --git a/static/img/workflow/step-1.overseas.png b/static/img/workflow/step-1.overseas.png new file mode 100644 index 0000000000000000000000000000000000000000..1f94072028e7e24ca2761ff8531bf511069dcc36 Binary files /dev/null and b/static/img/workflow/step-1.overseas.png differ diff --git a/static/img/workflow/step-2.overseas.png b/static/img/workflow/step-2.overseas.png new file mode 100644 index 0000000000000000000000000000000000000000..91df5644090e1b5044ec7c8806e9336f18c96bd7 Binary files /dev/null and b/static/img/workflow/step-2.overseas.png differ diff --git a/static/img/workflow/step-3.overseas.png b/static/img/workflow/step-3.overseas.png new file mode 100644 index 0000000000000000000000000000000000000000..82096549cfb0097dc698685b5143a54a0666e826 Binary files /dev/null and b/static/img/workflow/step-3.overseas.png differ